mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 10:57:47 +01:00
SPIGOT-4128: Skip hopeless entity conversion
This commit is contained in:
parent
2100017016
commit
46e5eeb67e
@ -81,7 +81,8 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
|
|||||||
|
|
||||||
// Tag still has some other data, lets try our luck with a conversion
|
// Tag still has some other data, lets try our luck with a conversion
|
||||||
if (!entityTag.isEmpty()) {
|
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
|
// See if we can read a converted ID tag
|
||||||
|
Loading…
Reference in New Issue
Block a user