From 46e5eeb67eb9e1911414e79420e662c6f7d1c809 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 24 Jul 2018 20:46:49 +1000 Subject: [PATCH] SPIGOT-4128: Skip hopeless entity conversion --- .../org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java index ebf5e18bd9..15d388d238 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java @@ -81,7 +81,8 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta { // Tag still has some other data, lets try our luck with a conversion if (!entityTag.isEmpty()) { - entityTag = (NBTTagCompound) MinecraftServer.getServer().dataConverterManager.update(DataConverterTypes.ENTITY, new Dynamic(DynamicOpsNBT.a, entityTag), -1, CraftMagicNumbers.DATA_VERSION).getValue(); + // SPIGOT-4128: This is hopeless until we start versioning stacks. RIP data. + // entityTag = (NBTTagCompound) MinecraftServer.getServer().dataConverterManager.update(DataConverterTypes.ENTITY, new Dynamic(DynamicOpsNBT.a, entityTag), -1, CraftMagicNumbers.DATA_VERSION).getValue(); } // See if we can read a converted ID tag