diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-03-21 16:59:45 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-03-21 16:59:45 -0500 |
commit | 6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875 (patch) | |
tree | 768bdbc5429900036f91a8316d6fbb3b90f12f30 /src | |
parent | abee107830009bd2a7445fe1a564d186b515564b (diff) | |
download | craftbukkit-6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875.tar craftbukkit-6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875.tar.gz craftbukkit-6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875.tar.lz craftbukkit-6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875.tar.xz craftbukkit-6f9e4f8541898aa1ebba2840a0e8c6f6aac7a875.zip |
Stationary lava is also a LAVA ignition cause.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index cecef80b..df4e2c33 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/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); |