mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Stationary lava is also a LAVA ignition cause.
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
d9c6b90716
commit
0a6888a54f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user