Remove isLobbyDisabled game rule

This commit is contained in:
Daniel Saukel 2020-06-19 21:50:37 +02:00
parent b35000358f
commit 4ddfea0205
2 changed files with 0 additions and 8 deletions

View File

@ -73,10 +73,6 @@ public class GameRule<V> {
* The location where the players spawn when they finish the dungeon.
*/
public static final GameRule<String> FINISH_LOCATION = new GameRule<>(String.class, "finishLocation", null);
/**
* If the Lobby is disabled. This applies only to Dungeons that have to be solved alone and where there are no classes to choose from.
*/
public static final GameRule<Boolean> IS_LOBBY_DISABLED = new GameRule<>(Boolean.class, "isLobbyDisabled", false);
/**
* The goal of the game that defines what makes it end.
*/

View File

@ -99,10 +99,6 @@ public class DGamePlayer extends DInstancePlayer implements GamePlayer {
}
player.setAllowFlight(rules.getState(GameRule.FLY));
if (rules.getState(GameRule.IS_LOBBY_DISABLED)) {
ready();
}
initialLives = rules.getState(GameRule.INITIAL_LIVES);
lives = initialLives;