diff --git a/src/main/java/emu/grasscutter/data/ResourceLoader.java b/src/main/java/emu/grasscutter/data/ResourceLoader.java index 49aa7ac3d..32374e7fb 100644 --- a/src/main/java/emu/grasscutter/data/ResourceLoader.java +++ b/src/main/java/emu/grasscutter/data/ResourceLoader.java @@ -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) { diff --git a/src/main/java/emu/grasscutter/data/excels/ItemData.java b/src/main/java/emu/grasscutter/data/excels/ItemData.java index 50415306b..75dd5fb9d 100644 --- a/src/main/java/emu/grasscutter/data/excels/ItemData.java +++ b/src/main/java/emu/grasscutter/data/excels/ItemData.java @@ -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 itemUse; private List itemUseActions; - private final boolean useOnGain = false; + private boolean useOnGain = false; // Relic private int mainPropDepotId;