mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
Fix misplaced patch in ItemEntityRenderer breaking ItemEntityRenderer#shouldBob() (#8919)
This commit is contained in:
1 parent
fe19491822
commit
c713bad8c3
1 file changed
+5
-4
+5
-4
@@ -1,11 +1,12 @@
|
||||
--- a/net/minecraft/client/renderer/entity/ItemEntityRenderer.java
|
||||
+++ b/net/minecraft/client/renderer/entity/ItemEntityRenderer.java
|
||||
@@ -62,17 +_,14 @@
|
||||
@@ -61,18 +_,15 @@
|
||||
boolean flag = bakedmodel.m_7539_();
|
||||
int j = this.m_115042_(itemstack);
|
||||
float f = 0.25F;
|
||||
float f1 = Mth.m_14031_(((float)p_115036_.m_32059_() + p_115038_) / 10.0F + p_115036_.f_31983_) * 0.1F + 0.1F;
|
||||
- float f2 = bakedmodel.m_7442_().m_111808_(ItemTransforms.TransformType.GROUND).f_111757_.m_122260_();
|
||||
+ float f2 = shouldBob() ? bakedmodel.m_7442_().m_111808_(ItemTransforms.TransformType.GROUND).f_111757_.m_122260_() : 0;
|
||||
- float f1 = Mth.m_14031_(((float)p_115036_.m_32059_() + p_115038_) / 10.0F + p_115036_.f_31983_) * 0.1F + 0.1F;
|
||||
+ float f1 = shouldBob() ? Mth.m_14031_(((float)p_115036_.m_32059_() + p_115038_) / 10.0F + p_115036_.f_31983_) * 0.1F + 0.1F : 0;
|
||||
float f2 = bakedmodel.m_7442_().m_111808_(ItemTransforms.TransformType.GROUND).f_111757_.m_122260_();
|
||||
p_115039_.m_85837_(0.0D, (double)(f1 + 0.25F * f2), 0.0D);
|
||||
float f3 = p_115036_.m_32008_(p_115038_);
|
||||
p_115039_.m_85845_(Vector3f.f_122225_.m_122270_(f3));
|
||||
|
||||
Reference in new issue
Block a user