mapping fixes
This commit is contained in:
1 parent
95a7420e7d
commit
98f514ffce
1 file changed
+2
-2
@@ -105,8 +105,8 @@ public class MobAI
|
|||||||
*/
|
*/
|
||||||
public static void genericJump(Entity e)
|
public static void genericJump(Entity e)
|
||||||
{
|
{
|
||||||
if (!e.onGround && !e.isInFluid(FluidTags.WATER) && !e.isInLava()) return;
|
if (!e.isOnGround() && !e.isInsideWaterOrBubbleColumn() && !e.isInLava()) return;
|
||||||
float m = e.world.getBlockState(new BlockPos(e)).getBlock().getJumpVelocityMultiplier();
|
float m = e.world.getBlockState(e.getBlockPos()).getBlock().getJumpVelocityMultiplier();
|
||||||
float g = e.world.getBlockState(new BlockPos(e.getX(), e.getBoundingBox().y1 - 0.5000001D, e.getZ())).getBlock().getJumpVelocityMultiplier();
|
float g = e.world.getBlockState(new BlockPos(e.getX(), e.getBoundingBox().y1 - 0.5000001D, e.getZ())).getBlock().getJumpVelocityMultiplier();
|
||||||
float jumpVelocityMultiplier = (double) m == 1.0D ? g : m;
|
float jumpVelocityMultiplier = (double) m == 1.0D ? g : m;
|
||||||
float jumpStrength = (0.42F * jumpVelocityMultiplier);
|
float jumpStrength = (0.42F * jumpVelocityMultiplier);
|
||||||
|
|||||||
Reference in new issue
Block a user