mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Fixed being unable to cancel TNT placement. Fixes BUKKIT-89.
This commit is contained in:
parent
1884f2f763
commit
5479a2ca82
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user