2021-06-30 10:56:27 +02:00
|
|
|
--- a/net/minecraft/world/level/block/AbstractCandleBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/block/AbstractCandleBlock.java
|
2024-04-23 17:15:00 +02:00
|
|
|
@@ -46,6 +46,11 @@
|
2021-06-30 10:56:27 +02:00
|
|
|
@Override
|
2024-04-23 17:15:00 +02:00
|
|
|
protected void onProjectileHit(World world, IBlockData iblockdata, MovingObjectPositionBlock movingobjectpositionblock, IProjectile iprojectile) {
|
2021-11-21 23:00:00 +01:00
|
|
|
if (!world.isClientSide && iprojectile.isOnFire() && this.canBeLit(iblockdata)) {
|
2021-06-30 10:56:27 +02:00
|
|
|
+ // CraftBukkit start
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, movingobjectpositionblock.getBlockPos(), iprojectile).isCancelled()) {
|
2021-06-30 10:56:27 +02:00
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
setLit(world, iblockdata, movingobjectpositionblock.getBlockPos(), true);
|
2021-06-30 10:56:27 +02:00
|
|
|
}
|
|
|
|
|