2019-09-02 05:14:13 +02:00
|
|
|
--- a/net/minecraft/server/BlockCampfire.java
|
|
|
|
+++ b/net/minecraft/server/BlockCampfire.java
|
2020-06-25 02:00:00 +02:00
|
|
|
@@ -144,6 +144,11 @@
|
|
|
|
if (flag && !(Boolean) iblockdata.get(BlockCampfire.b) && !(Boolean) iblockdata.get(BlockCampfire.d)) {
|
|
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
2019-09-02 05:14:13 +02:00
|
|
|
|
2020-06-25 02:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
2020-06-26 01:01:18 +02:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, iprojectile).isCancelled()) {
|
2020-06-25 02:00:00 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.r, true), 11);
|
2019-09-02 05:14:13 +02:00
|
|
|
}
|
2020-06-25 02:00:00 +02:00
|
|
|
}
|