3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-21 05:50:05 +01:00
Paper/nms-patches/BlockTNT.patch

15 Zeilen
686 B
Diff

--- a/net/minecraft/server/BlockTNT.java
+++ b/net/minecraft/server/BlockTNT.java
2019-05-14 02:00:00 +02:00
@@ -93,6 +93,11 @@
if (entityarrow.isBurning()) {
2019-05-14 02:00:00 +02:00
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
+ // CraftBukkit start
2018-07-15 02:00:00 +02:00
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityarrow, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
+ return;
+ }
+ // CraftBukkit end
2019-05-14 02:00:00 +02:00
2019-04-23 04:00:00 +02:00
a(world, blockposition, entity1 instanceof EntityLiving ? (EntityLiving) entity1 : null);
world.a(blockposition, false);