Fix nameplates custom name not showing up in tooltip

This commit is contained in:
Sebastian Hartte
2020-06-19 00:07:08 +02:00
parent 43c06131c6
commit 268ed4c753
@@ -71,6 +71,11 @@ import appeng.util.inv.AdaptorItemHandler;
public final class ItemMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule {
/**
* NBT property used by the name press to store the name to be inscribed.
*/
public static final String TAG_INSCRIBE_NAME = "InscribeName";
private static final int KILO_SCALAR = 1024;
private final MaterialType materialType;
@@ -88,8 +93,8 @@ public final class ItemMaterial extends AEBaseItem implements IStorageComponent,
if (materialType == MaterialType.NAME_PRESS) {
final CompoundNBT c = stack.getOrCreateTag();
if (c.contains("InscriberName")) {
lines.add(new StringTextComponent(c.getString("InscribeName")));
if (c.contains(TAG_INSCRIBE_NAME)) {
lines.add(new StringTextComponent(c.getString(TAG_INSCRIBE_NAME)));
}
}