private void cancelPrevious() { LavaSurgeWall lavaWall = getAbility(player, LavaSurgeWall.class); if (lavaWall != null) { if (lavaWall.progressing) { lavaWall.removeLava(lavaWall.sourceBlock); } else { lavaWall.cancel(); } } }
public static void moveLava(Player player) { LavaSurgeWall wall = getAbility(player, LavaSurgeWall.class); if (wall != null) { wall.moveLava(); } }