From cd2a1a6d7ec3693af0d6e1c94f673745a79d2b44 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 10 Jun 2024 14:06:38 +1000 Subject: [PATCH] Fix spawn eggs with no entity creating invalid stacks and disconnect creative clients Example: /give @s minecraft:cat_spawn_egg[minecraft:max_stack_size=1,minecraft:max_damage=100,minecraft:damage=10] 1 By: md_5 --- .../org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java index c5e879d538..a8ca531c2f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java @@ -151,10 +151,6 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta { void applyToItem(CraftMetaItem.Applicator tag) { super.applyToItem(tag); - if (!isSpawnEggEmpty() && entityTag == null) { - entityTag = new NBTTagCompound(); - } - if (entityTag != null) { tag.put(ENTITY_TAG, CustomData.of(entityTag)); }