Files
2019-02-24 22:29:41 +08:00

13 lines
680 B
Diff

--- ../src-base/minecraft/net/minecraft/block/BlockTNT.java
+++ ../src-work/minecraft/net/minecraft/block/BlockTNT.java
@@ -115,6 +115,9 @@
if (entityarrow.isBurning())
{
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, pos, Blocks.AIR, 0).isCancelled()) {
+ return;
+ }
this.explode(worldIn, pos, worldIn.getBlockState(pos).withProperty(EXPLODE, Boolean.valueOf(true)), entityarrow.shootingEntity instanceof EntityLivingBase ? (EntityLivingBase)entityarrow.shootingEntity : null);
worldIn.setBlockToAir(pos);
}