3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

SPIGOT-4128: Skip hopeless entity conversion

Dieser Commit ist enthalten in:
md_5 2018-07-24 20:46:49 +10:00
Ursprung 2100017016
Commit 46e5eeb67e

Datei anzeigen

@ -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