Add support for offhand bow aiming animation (#3085)

Vanilla allows you to use a bow in your offhand, but it's not visible to others or in third person.
Fixes MC-88356
This commit is contained in:
Matthew Messinger authored and LexManos committed 2016-09-16 18:53:17 -07:00
1 parent 89eb8f067d
commit 2aaa4f424d
1 file changed
+12
@@ -16,3 +16,15 @@
}
private void func_177137_d(AbstractClientPlayer p_177137_1_)
@@ -127,6 +129,11 @@
{
modelbiped$armpose1 = ModelBiped.ArmPose.BLOCK;
}
+ // FORGE: fix MC-88356 allow offhand to use bow and arrow animation
+ else if (enumaction1 == EnumAction.BOW)
+ {
+ modelbiped$armpose1 = ModelBiped.ArmPose.BOW_AND_ARROW;
+ }
}
}