Skip to content

Commit 8915b9e

Browse files
committed
Add better compatibility with the Cubic Chunks mod
Fixes broken movement when posY would exceed the vanilla bounds Closes #20
1 parent 6e497a8 commit 8915b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/squeek/quakemovement/QuakeClientPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private static boolean isJumping(EntityPlayer player)
293293

294294
private static void minecraft_ApplyGravity(EntityPlayer player)
295295
{
296-
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()))
296+
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()))
297297
{
298298
if (player.posY > 0.0D)
299299
{

0 commit comments

Comments
 (0)