aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
diff options
context:
space:
mode:
authorElisis <gtandemmodding@gmail.com>2024-11-24 10:14:22 +1100
committerGitHub <noreply@github.com>2024-11-23 23:14:22 +0000
commit9ce867e5aa95d2f8a8a809e33b3a0fb874e3b36b (patch)
tree96333d48657f7c07e03b2ce8d7367a0a2ccc7523 /src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java
parent2449dbf9168456d49f0cf29097ff780f6cd63deb (diff)
downloadGT5-Unofficial-9ce867e5aa95d2f8a8a809e33b3a0fb874e3b36b.tar.gz
GT5-Unofficial-9ce867e5aa95d2f8a8a809e33b3a0fb874e3b36b.tar.bz2
GT5-Unofficial-9ce867e5aa95d2f8a8a809e33b3a0fb874e3b36b.zip
Beamline fixes 4 (#3504)
Co-authored-by: BlueHero233 <jeleiacraft@gmail.com> Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ethryan <3237986+Ethryan@users.noreply.github.com>
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() {