From 5479a2ca82e84c9c13a315d5f7622ace442e5e8b Mon Sep 17 00:00:00 2001 From: Tahg Date: Thu, 2 Feb 2012 16:59:00 -0500 Subject: [PATCH] Fixed being unable to cancel TNT placement. Fixes BUKKIT-89. --- src/main/java/net/minecraft/server/BlockTNT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java index be4c7e1a47..23b7eb4cbc 100644 --- a/src/main/java/net/minecraft/server/BlockTNT.java +++ b/src/main/java/net/minecraft/server/BlockTNT.java @@ -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); }