mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 10:06:51 +01:00
Fix issue with Amber not being added
the field for an item's `useOnGain` was final!
This commit is contained in:
@@ -731,7 +731,8 @@ public final class ResourceLoader {
|
||||
try {
|
||||
val gadgetMap = GameData.getGadgetMappingMap();
|
||||
try {
|
||||
JsonUtils.loadToList(getResourcePath("Server/GadgetMapping.json"), GadgetMapping.class).forEach(entry -> gadgetMap.put(entry.getGadgetId(), entry));;
|
||||
JsonUtils.loadToList(getResourcePath("Server/GadgetMapping.json"), GadgetMapping.class)
|
||||
.forEach(entry -> gadgetMap.put(entry.getGadgetId(), entry));;
|
||||
} catch (IOException | NullPointerException ignored) {}
|
||||
Grasscutter.getLogger().debug("Loaded {} gadget mappings.", gadgetMap.size());
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user