aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java')
-rw-r--r--src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java b/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
index 30cbac875b..c96212c8e6 100644
--- a/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
+++ b/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
@@ -23,9 +23,6 @@ public class ItemPhotolithographicMask extends Item implements ICanFocus {
this.setTextureName(Tags.MODID + ":photomask/" + name);
}
- /*
- * @Override public String getUnlocalizedName() { return "item.photomask." + this.name; }
- */
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) {
@@ -33,6 +30,10 @@ public class ItemPhotolithographicMask extends Item implements ICanFocus {
if (!this.descSpectrum.isEmpty())
list.add("Suitable for the " + this.descSpectrum + " segment of the electromagnetic spectrum and lower");
+ if (this.getMaxDamage() > 0) // Not a precursor.
+ list.add("Max Uses: " + (this.getMaxDamage() + 1)); // maximum uses = max damage + 1 in general, as
+ // 0-durability masks still function
+
}
public String getDescSpectrum() {