Hotfix for 1.19.2 item animation bug (#8987)

* [HOT FIX]: Fixes #8985 by no-oping for vanilla models instead of throwing error

Signed-off-by: tmvkrpxl0 <[email protected]>
This commit is contained in:
한현빈 authored and GitHub committed 2022-08-20 11:38:24 +02:00
1 parent c0aa8dd808
commit b5d5855559
3 files changed
+7 -3

No files matched your search

@@ -92,6 +92,9 @@ public class ItemUseAnimationTest
@Override
public boolean applyForgeHandTransform(PoseStack poseStack, LocalPlayer player, HumanoidArm arm, ItemStack itemInHand, float partialTick, float equipProcess, float swingProcess) {
applyItemArmTransform(poseStack, arm);
if (player.getUseItem() != itemInHand) {
return true;
}
if (player.isUsingItem()) {
poseStack.translate(0.0, -0.05, 0.0);
}