mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 08:56:23 +01:00
SPIGOT-4128: Skip hopeless entity conversion
This commit is contained in:
parent
2100017016
commit
46e5eeb67e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue