From 0a6888a54fe9c105b313dcfac0c07bc076c3dd28 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 21 Mar 2013 16:59:45 -0500 Subject: [PATCH] Stationary lava is also a LAVA ignition cause. By: Travis Watkins --- .../craftbukkit/event/CraftEventFactory.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index cecef80bc9..df4e2c33f0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -560,15 +560,16 @@ public class CraftEventFactory { Block igniter = bukkitWorld.getBlockAt(igniterX, igniterY, igniterZ); IgniteCause cause; switch (igniter.getType()) { - case LAVA: - cause = IgniteCause.LAVA; - break; - case DISPENSER: - cause = IgniteCause.FLINT_AND_STEEL; - break; - case FIRE: // Fire or any other unknown block counts as SPREAD. - default: - cause = IgniteCause.SPREAD; + case LAVA: + case STATIONARY_LAVA: + cause = IgniteCause.LAVA; + break; + case DISPENSER: + cause = IgniteCause.FLINT_AND_STEEL; + break; + case FIRE: // Fire or any other unknown block counts as SPREAD. + default: + cause = IgniteCause.SPREAD; } BlockIgniteEvent event = new BlockIgniteEvent(bukkitWorld.getBlockAt(x, y, z), cause, igniter);