Commits
md_5 authored e3b4dd3d9a6
1 + | --- a/net/minecraft/server/BlockTNT.java |
2 + | +++ b/net/minecraft/server/BlockTNT.java |
3 + | |
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 + | } |