forked from SteamWar/SteamWar
Hotfix CheckCommand
This commit is contained in:
@@ -61,6 +61,8 @@ public class ArenaMode {
|
||||
}
|
||||
if (gameModeConfig.Schematic.loaded && gameModeConfig.Schematic.Type != SchematicType.Normal) {
|
||||
bySchemType.put(gameModeConfig.Schematic.Type, gameModeConfig);
|
||||
SchematicType checkType = gameModeConfig.Schematic.Type.checkType();
|
||||
if (checkType != null) bySchemType.put(checkType, gameModeConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,6 +100,7 @@ public class CheckCommand extends SWCommand {
|
||||
|
||||
for (SchematicNode schematic : schematicList) {
|
||||
GameModeConfig<String, String> gameModeConfig = ArenaMode.getBySchemType(schematic.getSchemtype());
|
||||
if (gameModeConfig == null) gameModeConfig = GameModeConfig.getDefaults();
|
||||
CheckSession current = currentSchems.get(schematic.getId());
|
||||
ClickEvent clickEvent = null;
|
||||
Message hoverMessage = null;
|
||||
|
||||
Reference in New Issue
Block a user