Skip to content

Commit

Permalink
Allow Traveller's Glove & Belt to be properly enchanted in the Infusi…
Browse files Browse the repository at this point in the history
…on 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Alexander Anishin <[email protected]>
  • Loading branch information
3 people authored Oct 10, 2024
1 parent 3ffa69d commit e292d4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/tconstruct/armor/items/TravelBelt.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemSta
return ArmorProxyClient.belt;
}

@Override
public boolean isItemTool(ItemStack stack) {
return true;
}

ResourceLocation texture = new ResourceLocation("tinker", "textures/armor/travel_2.png");

@Override
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/tconstruct/armor/items/TravelGlove.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public boolean canEquipAccessory(ItemStack item, int slot) {
return slot == 1;
}

@Override
public boolean isItemTool(ItemStack stack) {
return true;
}

@Override
@SideOnly(Side.CLIENT)
protected void registerModifiers(IIconRegister iconRegister) {
Expand Down

0 comments on commit e292d4c

Please sign in to comment.