mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 17:53:21 +08:00
Fix issue with Amber not being added
the field for an item's `useOnGain` was final!
This commit is contained in:
parent
f2019aa88a
commit
2b4feba86f
@ -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) {
|
||||
|
@ -54,10 +54,10 @@ public class ItemData extends GameResource {
|
||||
private int[] satiationParams;
|
||||
|
||||
// Usable item
|
||||
private final ItemUseTarget useTarget = ItemUseTarget.ITEM_USE_TARGET_NONE;
|
||||
private ItemUseTarget useTarget = ItemUseTarget.ITEM_USE_TARGET_NONE;
|
||||
private List<ItemUseData> itemUse;
|
||||
private List<ItemUseAction> itemUseActions;
|
||||
private final boolean useOnGain = false;
|
||||
private boolean useOnGain = false;
|
||||
|
||||
// Relic
|
||||
private int mainPropDepotId;
|
||||
|
Loading…
Reference in New Issue
Block a user