Fix nameplates custom name not showing up in tooltip
This commit is contained in:
@@ -71,6 +71,11 @@ import appeng.util.inv.AdaptorItemHandler;
|
|||||||
|
|
||||||
public final class ItemMaterial extends AEBaseItem implements IStorageComponent, IUpgradeModule {
|
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 static final int KILO_SCALAR = 1024;
|
||||||
|
|
||||||
private final MaterialType materialType;
|
private final MaterialType materialType;
|
||||||
@@ -88,8 +93,8 @@ public final class ItemMaterial extends AEBaseItem implements IStorageComponent,
|
|||||||
|
|
||||||
if (materialType == MaterialType.NAME_PRESS) {
|
if (materialType == MaterialType.NAME_PRESS) {
|
||||||
final CompoundNBT c = stack.getOrCreateTag();
|
final CompoundNBT c = stack.getOrCreateTag();
|
||||||
if (c.contains("InscriberName")) {
|
if (c.contains(TAG_INSCRIBE_NAME)) {
|
||||||
lines.add(new StringTextComponent(c.getString("InscribeName")));
|
lines.add(new StringTextComponent(c.getString(TAG_INSCRIBE_NAME)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user