mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-13 06:07:40 +01:00
15 lines
686 B
Diff
15 lines
686 B
Diff
--- a/net/minecraft/server/BlockTNT.java
|
|
+++ b/net/minecraft/server/BlockTNT.java
|
|
@@ -95,6 +95,11 @@
|
|
|
|
if (entityarrow.isBurning()) {
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
a(world, blockposition, entity1 instanceof EntityLiving ? (EntityLiving) entity1 : null);
|
|
world.a(blockposition, false);
|