Commits

md_5 authored e3b4dd3d9a6
Call EntityChangeBlockEvent for Fire Arrows hitting TNT
No tags

nms-patches/BlockTNT.patch

Added
1 +--- a/net/minecraft/server/BlockTNT.java
2 ++++ b/net/minecraft/server/BlockTNT.java
3 +@@ -75,6 +75,11 @@
4 + EntityArrow entityarrow = (EntityArrow) entity;
5 +
6 + if (entityarrow.isBurning()) {
7 ++ // CraftBukkit start
8 ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, blockposition, Blocks.AIR, 0).isCancelled()) {
9 ++ return;
10 ++ }
11 ++ // CraftBukkit end
12 + this.a(world, blockposition, world.getType(blockposition).set(BlockTNT.EXPLODE, Boolean.valueOf(true)), entityarrow.shooter instanceof EntityLiving ? (EntityLiving) entityarrow.shooter : null);
13 + world.setAir(blockposition);
14 + }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut