forked from SteamWar/SteamWar
Hotfix static initialisation of GameModeConfig
This commit is contained in:
@@ -40,10 +40,6 @@ public final class GameModeConfig<M, W> {
|
||||
public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd.MM.yyyy HH:mm");
|
||||
private static final Random random = new Random();
|
||||
|
||||
static {
|
||||
SchematicType.values();
|
||||
}
|
||||
|
||||
private static final Map<String, GameModeConfig<?, String>> byFileName = new HashMap<>();
|
||||
private static final Map<String, GameModeConfig<?, String>> byGameName = new HashMap<>();
|
||||
private static final Map<SchematicType, GameModeConfig<?, String>> bySchematicType = new HashMap<>();
|
||||
@@ -60,6 +56,10 @@ public final class GameModeConfig<M, W> {
|
||||
return (GameModeConfig<M, String>) bySchematicType.get(schematicType);
|
||||
}
|
||||
|
||||
static {
|
||||
SchematicType.values();
|
||||
}
|
||||
|
||||
private static final GameModeConfig<?, String> DEFAULTS = SQLWrapper.impl.loadGameModeConfig(null);
|
||||
|
||||
public static <M> GameModeConfig<M, String> getDefaults() {
|
||||
|
||||
Reference in New Issue
Block a user