mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
b3a8254758
By: md_5 <git@md-5.net>
14 lines
794 B
Diff
14 lines
794 B
Diff
--- a/net/minecraft/world/level/block/BlockCampfire.java
|
|
+++ b/net/minecraft/world/level/block/BlockCampfire.java
|
|
@@ -202,6 +202,11 @@
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
|
|
|
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);
|
|
}
|
|
|