mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 02:20:01 +03:00
13 lines
680 B
Diff
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);
|
|
}
|