From 5fc14dc98a8e8d19927ca91af6e20a483e09d6a0 Mon Sep 17 00:00:00 2001 From: Maya <10861407+serenibyss@users.noreply.github.com> Date: Mon, 13 Jan 2025 08:31:44 -0700 Subject: [PATCH] Remove beamline mask repairing (#3798) --- .../gtnhlanth/common/item/ItemPhotolithographicMask.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java b/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java index c96212c8e61..6ef577aa4e9 100644 --- a/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java +++ b/src/main/java/gtnhlanth/common/item/ItemPhotolithographicMask.java @@ -10,22 +10,20 @@ public class ItemPhotolithographicMask extends Item implements ICanFocus { - private final String name; private final String descSpectrum; public ItemPhotolithographicMask(String name, int maxDamage, String descSpectrum) { super(); - this.name = name; this.descSpectrum = descSpectrum; this.setUnlocalizedName("photomask." + name); this.setMaxStackSize(1); this.setMaxDamage(maxDamage); + this.setNoRepair(); this.setTextureName(Tags.MODID + ":photomask/" + name); } - @SuppressWarnings({ "rawtypes", "unchecked" }) @Override - public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) { + public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean bool) { if (!this.descSpectrum.isEmpty()) list.add("Suitable for the " + this.descSpectrum + " segment of the electromagnetic spectrum and lower");