It compiles

This commit is contained in:
Nassim Jahnke
2023-12-06 20:40:37 +01:00
parent b7ab883a24
commit 42a06e89bb
12 changed files with 58 additions and 19 deletions

View File

@@ -12,15 +12,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
EntityType entitytypes;
if (tileentity instanceof Spawner) {
+ if (!world.paperConfig().entities.spawning.disableMobSpawnerSpawnEggTransformation) { // Paper - add condition
+ if (world.paperConfig().entities.spawning.disableMobSpawnerSpawnEggTransformation) return InteractionResult.FAIL; // Paper
+
Spawner spawner = (Spawner) tileentity;
entitytypes = this.getType(itemstack.getTag());
@@ -0,0 +0,0 @@ public class SpawnEggItem extends Item {
world.gameEvent((Entity) context.getPlayer(), GameEvent.BLOCK_CHANGE, blockposition);
itemstack.shrink(1);
return InteractionResult.CONSUME;
+ } // Paper - end if
} else {
BlockPos blockposition1;