Fix changes that got lost late in development cycle
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user