mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 18:31:29 +01:00
15 lines
665 B
Diff
15 lines
665 B
Diff
--- a/net/minecraft/server/BlockTNT.java
|
|
+++ b/net/minecraft/server/BlockTNT.java
|
|
@@ -90,6 +90,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
|
|
this.a(world, blockposition, entity1 instanceof EntityLiving ? (EntityLiving) entity1 : null);
|
|
world.setAir(blockposition);
|
|
}
|