From e292d4cad9039de28c0f06d347ee388d9f07d8dd Mon Sep 17 00:00:00 2001 From: Kortako Date: Thu, 10 Oct 2024 02:06:29 -0700 Subject: [PATCH] Allow Traveller's Glove & Belt to be properly enchanted in the Infusion Altar with Transparency (#127) * Add configuration option to hide Traveller's gear accessories from displaying on player model * Make Translucency I and II enchantments from WG work properly with traveler's accessories (must enchant from book for now) * Update src/main/java/tconstruct/armor/ArmorProxyClient.java Co-authored-by: Alexander Anishin * Implement suggested style changes * spotless fix * Implement fix from adventure backpacks mod to allow glove and belt to be infused properly with the WG enchants --------- Co-authored-by: Martin Robertz Co-authored-by: Alexander Anishin --- src/main/java/tconstruct/armor/items/TravelBelt.java | 5 +++++ src/main/java/tconstruct/armor/items/TravelGlove.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/tconstruct/armor/items/TravelBelt.java b/src/main/java/tconstruct/armor/items/TravelBelt.java index b89a2a77..29cdca53 100644 --- a/src/main/java/tconstruct/armor/items/TravelBelt.java +++ b/src/main/java/tconstruct/armor/items/TravelBelt.java @@ -40,6 +40,11 @@ public class TravelBelt extends AccessoryCore implements IAccessoryModel { return ArmorProxyClient.belt; } + @Override + public boolean isItemTool(ItemStack stack) { + return true; + } + ResourceLocation texture = new ResourceLocation("tinker", "textures/armor/travel_2.png"); @Override diff --git a/src/main/java/tconstruct/armor/items/TravelGlove.java b/src/main/java/tconstruct/armor/items/TravelGlove.java index d1efd194..4fe6a474 100644 --- a/src/main/java/tconstruct/armor/items/TravelGlove.java +++ b/src/main/java/tconstruct/armor/items/TravelGlove.java @@ -25,6 +25,11 @@ public class TravelGlove extends AccessoryCore implements IAccessoryModel { return slot == 1; } + @Override + public boolean isItemTool(ItemStack stack) { + return true; + } + @Override @SideOnly(Side.CLIENT) protected void registerModifiers(IIconRegister iconRegister) {