add offhand support via Backhand (up required version to 1.6.9) (#859)

This commit is contained in:
Caedis authored and GitHub committed 2025-02-04 12:41:47 -05:00
1 parent 208373deaa
commit 6a5d914a43
10 files changed
+86 -16

No files matched your search

@@ -78,9 +78,8 @@ public class HandRenderer {
}
public boolean isHandTranslucent(InteractionHand hand) {
// TODO: Offhand
// Item item = Minecraft.getMinecraft().thePlayer.getItemBySlot(hand == InteractionHand.OFF_HAND ? EquipmentSlot.OFFHAND : EquipmentSlot.MAINHAND).getItem();
ItemStack heldItem = Minecraft.getMinecraft().thePlayer.getHeldItem();
ItemStack heldItem = hand.getItemInHand(Minecraft.getMinecraft().thePlayer);
if (heldItem == null) {
return false;
}