From db9263bde4f590a0a825f77607a0a50ca3f160c7 Mon Sep 17 00:00:00 2001 From: LemADEC Date: Wed, 26 Aug 2015 03:26:58 +0200 Subject: [PATCH] Fixed jump in space with air generator activated --- src/main/java/cr0s/warpdrive/EntityJump.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cr0s/warpdrive/EntityJump.java b/src/main/java/cr0s/warpdrive/EntityJump.java index 9be630c1..a0869178 100644 --- a/src/main/java/cr0s/warpdrive/EntityJump.java +++ b/src/main/java/cr0s/warpdrive/EntityJump.java @@ -616,8 +616,8 @@ public class EntityJump extends Entity { for (int z = z1; z <= z2; z++) { Block block = worldObj.getBlock(x, y, z); - // Skip air blocks - if (worldObj.isAirBlock(x, y, z) && (!block.isAssociatedBlock(WarpDrive.blockAir))) { + // Skipping vanilla air & WarpDrive gas blocks, keep WarpDrive air block + if (worldObj.isAirBlock(x, y, z) && !block.isAssociatedBlock(WarpDrive.blockAir)) {// whitelist continue; } @@ -812,7 +812,7 @@ public class EntityJump extends Entity { Block block = worldObj.getBlock(x, y, z); // Skipping vanilla air & WarpDrive gas blocks, keep WarpDrive air block - if (worldObj.isAirBlock(x, y, z) || block.isAssociatedBlock(WarpDrive.blockGas)) {// whitelist + if (worldObj.isAirBlock(x, y, z) && !block.isAssociatedBlock(WarpDrive.blockAir)) {// whitelist continue; }