Fixed jump in space with air generator activated

This commit is contained in:
LemADEC 2015-08-26 03:26:58 +02:00
parent fc424530f4
commit db9263bde4

View file

@ -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;
}