diff --git a/src/main/java/vazkii/botania/common/item/ItemSpawnerMover.java b/src/main/java/vazkii/botania/common/item/ItemSpawnerMover.java index 98fdad852..4d051af78 100644 --- a/src/main/java/vazkii/botania/common/item/ItemSpawnerMover.java +++ b/src/main/java/vazkii/botania/common/item/ItemSpawnerMover.java @@ -50,19 +50,9 @@ public class ItemSpawnerMover extends ItemMod { addPropertyOverride(new ResourceLocation("botania", "full"), (stack, worldIn, entityIn) -> hasData(stack) ? 1 : 0); } - @Nullable - private static CompoundNBT getSpawnerTag(ItemStack stack) { - CompoundNBT tag = stack.getTag(); - if(tag != null && tag.contains(TAG_SPAWNER)) { - return tag.getCompound(TAG_SPAWNER); - } - - return null; - } - @Nullable private static ResourceLocation getEntityId(ItemStack stack) { - CompoundNBT tag = getSpawnerTag(stack); + CompoundNBT tag = stack.getChildTag(TAG_SPAWNER); if(tag != null && tag.contains(TAG_SPAWN_DATA)) { tag = tag.getCompound(TAG_SPAWN_DATA); if(tag.contains(TAG_ID)) {