mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
14 lines
769 B
Diff
14 lines
769 B
Diff
--- a/net/minecraft/world/level/block/AbstractCandleBlock.java
|
|
+++ b/net/minecraft/world/level/block/AbstractCandleBlock.java
|
|
@@ -38,6 +38,11 @@
|
|
@Override
|
|
public void onProjectileHit(World world, IBlockData iblockdata, MovingObjectPositionBlock movingobjectpositionblock, IProjectile iprojectile) {
|
|
if (!world.isClientSide && iprojectile.isOnFire() && this.canBeLit(iblockdata)) {
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, movingobjectpositionblock.getBlockPos(), iprojectile).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
setLit(world, iblockdata, movingobjectpositionblock.getBlockPos(), true);
|
|
}
|
|
|