Commits

Parker Hawke authored and md_5 committed 6abb4398b9b
SPIGOT-5830: Server crash when campfire lit via dispenser.

Also adds a missing call to BlockIgniteEvent for players igniting campfires with flint and steel.
No tags

nms-patches/BlockCampfire.patch

Modified
1 1 --- a/net/minecraft/server/BlockCampfire.java
2 2 +++ b/net/minecraft/server/BlockCampfire.java
3 3 @@ -144,6 +144,11 @@
4 4 if (flag && !(Boolean) iblockdata.get(BlockCampfire.b) && !(Boolean) iblockdata.get(BlockCampfire.d)) {
5 5 BlockPosition blockposition = movingobjectpositionblock.getBlockPosition();
6 6
7 7 + // CraftBukkit start
8 -+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, entity).isCancelled()) {
8 ++ if (org.bukkit.craftbukkit.event.CraftEventFactory.callBlockIgniteEvent(world, blockposition, iprojectile).isCancelled()) {
9 9 + return;
10 10 + }
11 11 + // CraftBukkit end
12 12 world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockProperties.r, true), 11);
13 13 }
14 14 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut