13
0
geforkt von Mirrors/Paper
Paper/nms-patches/BlockTNT.patch
2019-04-23 12:00:00 +10:00

15 Zeilen
662 B
Diff

--- a/net/minecraft/server/BlockTNT.java
+++ b/net/minecraft/server/BlockTNT.java
@@ -92,6 +92,11 @@
Entity entity1 = entityarrow.getShooter();
if (entityarrow.isBurning()) {
+ // CraftBukkit start
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
+ return;
+ }
+ // CraftBukkit end
a(world, blockposition, entity1 instanceof EntityLiving ? (EntityLiving) entity1 : null);
world.a(blockposition, false);
}