moar fixes

This commit is contained in:
Progwml6 committed 2014-01-07 13:50:35 -05:00
1 parent 3cc541e872
commit f52b2f6f08
21 files changed
+724 -722

No files matched your search

@@ -495,10 +495,10 @@ public class AbilityHelper
return true;
}
int bID = world.getBlockId(x, y, z);
int bIDabove = world.getBlockId(x, y + 1, z);
Block b = world.getBlockId(x, y, z);
Block babove = world.getBlockId(x, y + 1, z);
if ((side == 0 || bIDabove != 0 || bID != Blocks.grass.blockID) && bID != Blocks.dirt.blockID)
if ((side == 0 || babove != Blocks.air || b != Blocks.grass) && b != Blocks.dirt)
{
return false;
}
@@ -514,7 +514,7 @@ public class AbilityHelper
}
else
{
world.setBlock(x, y, z, block.blockID);
world.setBlock(x, y, z, block);
onBlockChanged(stack, world, 0, x, y, z, player, random);
return true;
}