2016-07-08 03:20:15 +02:00
|
|
|
--- a/net/minecraft/server/BlockTNT.java
|
|
|
|
+++ b/net/minecraft/server/BlockTNT.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -92,6 +92,11 @@
|
2018-08-26 04:00:00 +02:00
|
|
|
Entity entity1 = entityarrow.getShooter();
|
2016-07-08 03:20:15 +02:00
|
|
|
|
|
|
|
if (entityarrow.isBurning()) {
|
|
|
|
+ // CraftBukkit start
|
2018-07-15 02:00:00 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
2016-07-08 03:20:15 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2019-04-23 04:00:00 +02:00
|
|
|
a(world, blockposition, entity1 instanceof EntityLiving ? (EntityLiving) entity1 : null);
|
|
|
|
world.a(blockposition, false);
|
2016-07-08 03:20:15 +02:00
|
|
|
}
|