diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_CraftingInput_ME.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_CraftingInput_ME.java index f66aec8a351..be98cbf24d8 100644 --- a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_CraftingInput_ME.java +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_Hatch_CraftingInput_ME.java @@ -476,7 +476,7 @@ public String getName() { if (getCrafterIcon() != null) { name.append(getCrafterIcon().getDisplayName()); } else { - name.append(getInventoryName()); + name.append(getLocalName()); } if (mInventory[SLOT_CIRCUIT] != null) { @@ -776,6 +776,8 @@ public ItemStack[] getSharedItems() { public void getWailaBody(ItemStack itemStack, List currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) { NBTTagCompound tag = accessor.getNBTData(); + if (tag.hasKey("name")) + currenttip.add(EnumChatFormatting.AQUA + tag.getString("name") + EnumChatFormatting.RESET); if (tag.hasKey("inventory")) { var inventory = tag.getTagList("inventory", Constants.NBT.TAG_COMPOUND); for (int i = 0; i < inventory.tagCount(); ++i) { @@ -823,7 +825,9 @@ public void getWailaNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompou } tag.setTag("inventory", inventory); - tag.setString("name", getName()); + if (!Objects.equals(getName(), getLocalName())) { + tag.setString("name", getName()); + } super.getWailaNBTData(player, tile, tag, world, x, y, z); }