2019-09-02 05:14:13 +02:00
|
|
|
--- a/net/minecraft/server/BlockCampfire.java
|
|
|
|
+++ b/net/minecraft/server/BlockCampfire.java
|
2019-12-10 23:00:00 +01:00
|
|
|
@@ -148,6 +148,11 @@
|
|
|
|
if (flag1 && !(Boolean) iblockdata.get(BlockCampfire.b) && !(Boolean) iblockdata.get(BlockCampfire.d)) {
|
|
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
2019-09-02 05:14:13 +02:00
|
|
|
|
2019-12-10 23:00:00 +01:00
|
|
|
+ // 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);
|
|
|
|
}
|
2019-09-02 05:14:13 +02:00
|
|
|
}
|