mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
Fixed being unable to cancel TNT placement. Fixes BUKKIT-89.
This commit is contained in:
parent
1884f2f763
commit
5479a2ca82
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue