Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-22 14:28:09 +01:00
6abb4398b9
Also adds a missing call to BlockIgniteEvent for players igniting campfires with flint and steel.
15 Zeilen
726 B
Diff
15 Zeilen
726 B
Diff
--- a/net/minecraft/server/BlockCampfire.java
|
|
+++ b/net/minecraft/server/BlockCampfire.java
|
|
@@ -144,6 +144,11 @@
|
|
if (flag && !(Boolean) iblockdata.get(BlockCampfire.b) && !(Boolean) iblockdata.get(BlockCampfire.d)) {
|
|
BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
|
|
|
|
+ // CraftBukkit start
|
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, iprojectile).isCancelled()) {
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.r, true), 11);
|
|
}
|
|
}
|