Add Unified GameModeConfig

This commit is contained in:
2025-10-25 21:45:44 +02:00
parent 0a6977e433
commit 87a4836fa1
103 changed files with 1731 additions and 876 deletions
@@ -21,9 +21,11 @@ package de.steamwar.sql;
import de.steamwar.sql.internal.SqlTypeMapper;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import java.util.*;
@Slf4j
public class SchematicType {
public static final SchematicType Normal = new SchematicType("Normal", "", Type.NORMAL, null, "STONE_BUTTON", false);
@@ -38,7 +40,10 @@ public class SchematicType {
tmpTypes.add(Normal);
tmpFromDB.put(Normal.name().toLowerCase(), Normal);
long time = System.currentTimeMillis();
SQLWrapper.impl.loadSchemTypes(tmpTypes, tmpFromDB);
time = System.currentTimeMillis() - time;
log.info("Loaded {} Schematic Types in {}ms", tmpTypes.size(), time);
fromDB = Collections.unmodifiableMap(tmpFromDB);
types = Collections.unmodifiableList(tmpTypes);