Fixed being unable to cancel TNT placement. Fixes BUKKIT-89.

This commit is contained in:
Tahg 2012-02-02 16:59:00 -05:00 committed by EvilSeph
parent 1884f2f763
commit 5479a2ca82

View File

@ -14,7 +14,7 @@ public class BlockTNT extends Block {
public void onPlace(World world, int i, int j, int k) {
super.onPlace(world, i, j, k);
if (world.isBlockIndirectlyPowered(i, j, k)) {
if (!world.suppressPhysics && world.isBlockIndirectlyPowered(i, j, k)) { // CraftBukkit
this.postBreak(world, i, j, k, 1);
world.setTypeId(i, j, k, 0);
}