diff options
author | md_5 <git@md-5.net> | 2018-07-24 20:46:49 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-24 20:46:49 +1000 |
commit | 46e5eeb67eb9e1911414e79420e662c6f7d1c809 (patch) | |
tree | a4e4c63ef7a0f518a8fa059e01ae75d3a5d8814a /src/main/java/org | |
parent | 210001701695ed79ae0b6b81e23125671913fe9c (diff) | |
download | craftbukkit-46e5eeb67eb9e1911414e79420e662c6f7d1c809.tar craftbukkit-46e5eeb67eb9e1911414e79420e662c6f7d1c809.tar.gz craftbukkit-46e5eeb67eb9e1911414e79420e662c6f7d1c809.tar.lz craftbukkit-46e5eeb67eb9e1911414e79420e662c6f7d1c809.tar.xz craftbukkit-46e5eeb67eb9e1911414e79420e662c6f7d1c809.zip |
SPIGOT-4128: Skip hopeless entity conversion
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java index ebf5e18b..15d388d2 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 |