Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 07:10:10 +01:00
15 Zeilen
745 B
Diff
15 Zeilen
745 B
Diff
|
--- a/net/minecraft/server/BlockCampfire.java
|
||
|
+++ b/net/minecraft/server/BlockCampfire.java
|
||
|
@@ -142,6 +142,11 @@
|
||
|
if (entityarrow.isBurning() && !(Boolean) iblockdata.get(BlockCampfire.b) && !(Boolean) iblockdata.get(BlockCampfire.d)) {
|
||
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
||
|
|
||
|
+ // CraftBukkit start
|
||
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, entityarrow).isCancelled()) {
|
||
|
+ return;
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.r, true), 11);
|
||
|
}
|
||
|
}
|