Reordered transformations during LayerHeldItem rendering, fixes #2827.

This commit is contained in:
RainWarrior 2016-05-29 23:35:41 +03:00
parent e65218b525
commit 4008983a5d

View file

@ -0,0 +1,18 @@
--- ../src-base/minecraft/net/minecraft/client/renderer/entity/layers/LayerHeldItem.java
+++ ../src-work/minecraft/net/minecraft/client/renderer/entity/layers/LayerHeldItem.java
@@ -50,13 +50,13 @@
if (p_188358_2_ != null)
{
GlStateManager.func_179094_E();
- ((ModelBiped)this.field_177206_a.func_177087_b()).func_187073_a(0.0625F, p_188358_4_);
if (p_188358_1_.func_70093_af())
{
GlStateManager.func_179109_b(0.0F, 0.2F, 0.0F);
}
-
+ // Forge: moved this call down, fixes incorrect offset while sneaking.
+ ((ModelBiped)this.field_177206_a.func_177087_b()).func_187073_a(0.0625F, p_188358_4_);
GlStateManager.func_179114_b(-90.0F, 1.0F, 0.0F, 0.0F);
GlStateManager.func_179114_b(180.0F, 0.0F, 1.0F, 0.0F);
boolean flag = p_188358_4_ == EnumHandSide.LEFT;