mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 18:01:07 +01:00
14 lines
684 B
Diff
14 lines
684 B
Diff
--- a/net/minecraft/server/BlockTNT.java
|
|
+++ b/net/minecraft/server/BlockTNT.java
|
|
@@ -94,6 +94,11 @@
|
|
|
|
if (iprojectile.isBurning()) {
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(iprojectile, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
a(world, blockposition, entity instanceof EntityLiving ? (EntityLiving) entity : null);
|
|
world.a(blockposition, false);
|