mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user