summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorTahg <tahgtahv@gmail.com>2012-02-02 16:59:00 -0500
committerEvilSeph <evilseph@gmail.com>2012-02-03 01:39:00 -0500
commit5479a2ca82e84c9c13a315d5f7622ace442e5e8b (patch)
tree7c73c60a496e4354105a1837b9109c20c3b9eb77 /src/main/java/net/minecraft/server
parent1884f2f763e634dbd283716d8ac2a280ffbbcfe1 (diff)
downloadcraftbukkit-5479a2ca82e84c9c13a315d5f7622ace442e5e8b.tar
craftbukkit-5479a2ca82e84c9c13a315d5f7622ace442e5e8b.tar.gz
craftbukkit-5479a2ca82e84c9c13a315d5f7622ace442e5e8b.tar.lz
craftbukkit-5479a2ca82e84c9c13a315d5f7622ace442e5e8b.tar.xz
craftbukkit-5479a2ca82e84c9c13a315d5f7622ace442e5e8b.zip
Fixed being unable to cancel TNT placement. Fixes BUKKIT-89.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/BlockTNT.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/BlockTNT.java b/src/main/java/net/minecraft/server/BlockTNT.java
index be4c7e1a..23b7eb4c 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);
}