Stationary lava is also a LAVA ignition cause.

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
CraftBukkit/Spigot 2013-03-21 16:59:45 -05:00
parent d9c6b90716
commit 0a6888a54f

View File

@ -560,15 +560,16 @@ public class CraftEventFactory {
Block igniter = bukkitWorld.getBlockAt(igniterX, igniterY, igniterZ); Block igniter = bukkitWorld.getBlockAt(igniterX, igniterY, igniterZ);
IgniteCause cause; IgniteCause cause;
switch (igniter.getType()) { switch (igniter.getType()) {
case LAVA: case LAVA:
cause = IgniteCause.LAVA; case STATIONARY_LAVA:
break; cause = IgniteCause.LAVA;
case DISPENSER: break;
cause = IgniteCause.FLINT_AND_STEEL; case DISPENSER:
break; cause = IgniteCause.FLINT_AND_STEEL;
case FIRE: // Fire or any other unknown block counts as SPREAD. break;
default: case FIRE: // Fire or any other unknown block counts as SPREAD.
cause = IgniteCause.SPREAD; default:
cause = IgniteCause.SPREAD;
} }
BlockIgniteEvent event = new BlockIgniteEvent(bukkitWorld.getBlockAt(x, y, z), cause, igniter); BlockIgniteEvent event = new BlockIgniteEvent(bukkitWorld.getBlockAt(x, y, z), cause, igniter);