Skip to content

Commit

Permalink
Fix held items being incorrectly swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Techjar committed Nov 11, 2023
1 parent 751f844 commit 6369a83
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ public static void renderVRHand_Main(PoseStack poseStack, float partialTicks) {
item = override;
}

if (dataHolder.climbTracker.isClimbeyClimb() && item.getItem() != Items.SHEARS) {
if (dataHolder.climbTracker.isClimbeyClimb()
&& item.getItem() != Items.SHEARS
&& dataHolder.climbTracker.isClaws(mc.player.getOffhandItem())) {
item = override == null ? mc.player.getOffhandItem() : override;
}

Expand Down Expand Up @@ -207,7 +209,8 @@ public static void renderVRHand_Offhand(float partialTicks, boolean renderTelepo
}

if (dataHolder.climbTracker.isClimbeyClimb()
&& (item == null || item.getItem() != Items.SHEARS)) {
&& item.getItem() != Items.SHEARS
&& dataHolder.climbTracker.isClaws(mc.player.getMainHandItem())) {
item = mc.player.getMainHandItem();
}

Expand Down

0 comments on commit 6369a83

Please sign in to comment.