2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockCampfire.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockCampfire.java
|
2024-06-13 17:05:00 +02:00
|
|
|
@@ -105,7 +105,7 @@
|
2021-08-11 11:05:08 +02:00
|
|
|
@Override
|
2024-04-23 17:15:00 +02:00
|
|
|
protected void entityInside(IBlockData iblockdata, World world, BlockPosition blockposition, Entity entity) {
|
2024-06-13 17:05:00 +02:00
|
|
|
if ((Boolean) iblockdata.getValue(BlockCampfire.LIT) && entity instanceof EntityLiving) {
|
|
|
|
- entity.hurt(world.damageSources().campfire(), (float) this.fireDamage);
|
|
|
|
+ entity.hurt(world.damageSources().campfire().directBlock(world, blockposition), (float) this.fireDamage); // CraftBukkit
|
2021-08-11 11:05:08 +02:00
|
|
|
}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
super.entityInside(iblockdata, world, blockposition, entity);
|
2024-06-13 17:05:00 +02:00
|
|
|
@@ -215,6 +215,11 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPos();
|
2019-09-02 05:14:13 +02:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
if (!world.isClientSide && iprojectile.isOnFire() && iprojectile.mayInteract(world, blockposition) && !(Boolean) iblockdata.getValue(BlockCampfire.LIT) && !(Boolean) iblockdata.getValue(BlockCampfire.WATERLOGGED)) {
|
2021-06-11 07:00:00 +02:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, iprojectile).isCancelled()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2021-11-21 23:00:00 +01:00
|
|
|
world.setBlock(blockposition, (IBlockData) iblockdata.setValue(BlockProperties.LIT, true), 11);
|
2020-06-25 02:00:00 +02:00
|
|
|
}
|
2021-06-11 07:00:00 +02:00
|
|
|
|