From b6669bf95d1e9464a3c2fba27c038a85eb0c003f Mon Sep 17 00:00:00 2001 From: James103 <37945304+James103@users.noreply.github.com> Date: Mon, 6 Apr 2020 02:44:29 -0500 Subject: [PATCH] Fix asanetargoss/Changeling#18: Avoid excessive velocities by limiting exponential gravity. --- .../java/mchorse/vanilla_pack/morphs/IronGolemMorph.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/mchorse/vanilla_pack/morphs/IronGolemMorph.java b/src/main/java/mchorse/vanilla_pack/morphs/IronGolemMorph.java index a93e5f72..a863a8b1 100644 --- a/src/main/java/mchorse/vanilla_pack/morphs/IronGolemMorph.java +++ b/src/main/java/mchorse/vanilla_pack/morphs/IronGolemMorph.java @@ -26,7 +26,10 @@ public void update(EntityLivingBase target, IMorphing cap) target.motionX *= 0.5; target.motionZ *= 0.5; - target.motionY *= 1.3; + if (target.motionY > -5) + { + target.motionY *= (1.1 + target.motionY / 50.0); + } } super.update(target, cap); @@ -55,4 +58,4 @@ public AbstractMorph clone() return morph; } -} \ No newline at end of file +}