mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 05:13:51 -07:00
It compiles
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user