Skip to content

Commit

Permalink
Add better compatibility with the Cubic Chunks mod
Browse files Browse the repository at this point in the history
Fixes broken movement when posY would exceed the vanilla bounds

Closes #20
  • Loading branch information
squeek502 committed Jun 19, 2018
1 parent 6e497a8 commit 8915b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/squeek/quakemovement/QuakeClientPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private static boolean isJumping(EntityPlayer player)

private static void minecraft_ApplyGravity(EntityPlayer player)
{
if (player.world.isRemote && (!player.world.isBlockLoaded(new BlockPos((int)player.posX, 0, (int)player.posZ)) || !player.world.getChunkFromBlockCoords(new BlockPos((int) player.posX, (int) player.posY, (int) player.posZ)).isLoaded()))
if (player.world.isRemote && (!player.world.isBlockLoaded(new BlockPos((int)player.posX, (int)player.posY, (int)player.posZ)) || !player.world.getChunkFromBlockCoords(new BlockPos((int) player.posX, (int) player.posY, (int) player.posZ)).isLoaded()))
{
if (player.posY > 0.0D)
{
Expand Down

0 comments on commit 8915b9e

Please sign in to comment.