Reordered transformations during LayerHeldItem rendering, fixes #2827.
This commit is contained in:
parent
e65218b525
commit
4008983a5d
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
Loading…
Reference in a new issue