mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
15 lines
721 B
Diff
15 lines
721 B
Diff
--- a/net/minecraft/server/BlockCampfire.java
|
|
+++ b/net/minecraft/server/BlockCampfire.java
|
|
@@ -144,6 +144,11 @@
|
|
if (flag && !(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, entity).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.r, true), 11);
|
|
}
|
|
}
|