From 870ed90a9a0c26543d8228c1cf479cd9e78e85aa Mon Sep 17 00:00:00 2001 From: BrodyBeckwith Date: Fri, 9 Oct 2020 20:30:12 -0400 Subject: [PATCH] Allow disabling mob spawner spawn egg transformation --- .../net/minecraft/world/item/SpawnEggItem.java.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/item/SpawnEggItem.java.patch b/paper-server/patches/sources/net/minecraft/world/item/SpawnEggItem.java.patch index b05a8530c5..a33a635c7a 100644 --- a/paper-server/patches/sources/net/minecraft/world/item/SpawnEggItem.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/item/SpawnEggItem.java.patch @@ -1,6 +1,15 @@ --- a/net/minecraft/world/item/SpawnEggItem.java +++ b/net/minecraft/world/item/SpawnEggItem.java -@@ -176,10 +176,10 @@ +@@ -63,6 +63,8 @@ + EntityType entitytypes; + + if (tileentity instanceof Spawner) { ++ if (world.paperConfig().entities.spawning.disableMobSpawnerSpawnEggTransformation) return InteractionResult.FAIL; // Paper - Allow disabling mob spawner spawn egg transformation ++ + Spawner spawner = (Spawner) tileentity; + + entitytypes = this.getType(world.registryAccess(), itemstack); +@@ -176,10 +178,10 @@ return Optional.empty(); } else { ((Mob) object).moveTo(pos.x(), pos.y(), pos.z(), 0.0F, 0.0F);