13
0
geforkt von Mirrors/Paper
Paper/nms-patches/BlockTNT.patch

15 Zeilen
684 B
Diff

--- a/net/minecraft/server/BlockTNT.java
+++ b/net/minecraft/server/BlockTNT.java
2020-06-25 02:00:00 +02:00
@@ -94,6 +94,11 @@
2020-06-25 02:00:00 +02:00
if (iprojectile.isBurning()) {
2019-05-14 02:00:00 +02:00
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
+ // CraftBukkit start
2020-06-25 02:00:00 +02:00
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(iprojectile, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
+ return;
+ }
+ // CraftBukkit end
2019-05-14 02:00:00 +02:00
2020-06-25 02:00:00 +02:00
a(world, blockposition, entity instanceof EntityLiving ? (EntityLiving) entity : null);
2019-04-23 04:00:00 +02:00
world.a(blockposition, false);