mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-16 14:23:28 +08:00
Format code [skip actions]
This commit is contained in:
@@ -810,8 +810,11 @@ public final class ResourceLoader {
|
||||
try {
|
||||
val subfieldMap = GameData.getSubfieldMappingMap();
|
||||
try {
|
||||
JsonUtils.loadToList(getResourcePath("Server/SubfieldMapping.json"), SubfieldMapping.class).forEach(entry -> subfieldMap.put(entry.getEntityId(), entry));;
|
||||
} catch (IOException | NullPointerException ignored) {}
|
||||
JsonUtils.loadToList(getResourcePath("Server/SubfieldMapping.json"), SubfieldMapping.class)
|
||||
.forEach(entry -> subfieldMap.put(entry.getEntityId(), entry));
|
||||
;
|
||||
} catch (IOException | NullPointerException ignored) {
|
||||
}
|
||||
Grasscutter.getLogger().debug("Loaded {} subfield mappings.", subfieldMap.size());
|
||||
} catch (Exception e) {
|
||||
Grasscutter.getLogger().error("Unable to load subfield mappings.", e);
|
||||
@@ -820,8 +823,12 @@ public final class ResourceLoader {
|
||||
try {
|
||||
val dropSubfieldMap = GameData.getDropSubfieldMappingMap();
|
||||
try {
|
||||
JsonUtils.loadToList(getResourcePath("Server/DropSubfieldMapping.json"), DropSubfieldMapping.class).forEach(entry -> dropSubfieldMap.put(entry.getDropId(), entry));;
|
||||
} catch (IOException | NullPointerException ignored) {}
|
||||
JsonUtils.loadToList(
|
||||
getResourcePath("Server/DropSubfieldMapping.json"), DropSubfieldMapping.class)
|
||||
.forEach(entry -> dropSubfieldMap.put(entry.getDropId(), entry));
|
||||
;
|
||||
} catch (IOException | NullPointerException ignored) {
|
||||
}
|
||||
Grasscutter.getLogger().debug("Loaded {} drop subfield mappings.", dropSubfieldMap.size());
|
||||
} catch (Exception e) {
|
||||
Grasscutter.getLogger().error("Unable to load drop subfield mappings.", e);
|
||||
@@ -830,9 +837,15 @@ public final class ResourceLoader {
|
||||
try {
|
||||
val dropTableExcelConfigDataMap = GameData.getDropTableExcelConfigDataMap();
|
||||
try {
|
||||
JsonUtils.loadToList(getResourcePath("Server/DropTableExcelConfigData.json"), DropTableExcelConfigData.class).forEach(entry -> dropTableExcelConfigDataMap.put(entry.getId(), entry));;
|
||||
} catch (IOException | NullPointerException ignored) {}
|
||||
Grasscutter.getLogger().debug("Loaded {} drop table configs.", dropTableExcelConfigDataMap.size());
|
||||
JsonUtils.loadToList(
|
||||
getResourcePath("Server/DropTableExcelConfigData.json"),
|
||||
DropTableExcelConfigData.class)
|
||||
.forEach(entry -> dropTableExcelConfigDataMap.put(entry.getId(), entry));
|
||||
;
|
||||
} catch (IOException | NullPointerException ignored) {
|
||||
}
|
||||
Grasscutter.getLogger()
|
||||
.debug("Loaded {} drop table configs.", dropTableExcelConfigDataMap.size());
|
||||
} catch (Exception e) {
|
||||
Grasscutter.getLogger().error("Unable to load drop table config data.", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user