2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockCampfire.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockCampfire.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -202,6 +202,11 @@
|
|
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
2019-09-02 05:14:13 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
if (!world.isClientSide && iprojectile.isBurning() && iprojectile.a(world, blockposition) && !(Boolean) iblockdata.get(BlockCampfire.LIT) && !(Boolean) iblockdata.get(BlockCampfire.WATERLOGGED)) {
|
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, iprojectile).isCancelled()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
|
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.LIT, true), 11);
|
2020-06-25 02:00:00 +02:00
|
|
|
}
|
2021-06-11 07:00:00 +02:00
|
|
|
|