Fix changes that got lost late in development cycle

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-18 14:13:20 +10:00
parent f50cda3c51
commit 88ee63f959
2 changed files with 19 additions and 8 deletions

View File

@@ -227,6 +227,11 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
}
if (spawnedType != null) {
if (entityTag != null) {
// Remove ID tag as it is now in the material
entityTag.remove(ENTITY_ID.NBT);
}
return CraftLegacy.fromLegacy(new MaterialData(Material.LEGACY_MONSTER_EGG, (byte) spawnedType.getTypeId()));
}