From 08094e87de95e7b086715f419809dedd69b55e95 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 16 Jan 2022 14:18:54 +0100 Subject: [PATCH] Make categoryMap final in KeyMappings.java Signed-off-by: Username404 --- .../main/java/fr/username404/snowygui/mixins/KeyMappings.java | 2 +- common/src/main/resources/snowygui-common.mixins.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java b/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java index 88c2318..31d4048 100644 --- a/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java +++ b/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java @@ -25,7 +25,7 @@ abstract class KeyMappings { @Inject(method = "*", at = @At("RETURN")) private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) { - var categoryMap = KeysAccessor.getSortedCategoryMap(); + final var categoryMap = KeysAccessor.getSortedCategoryMap(); var newKeys = Lists.newArrayList(keyMappings); for (KeyMapping key : keysToAdd) { if (!categoryMap.containsKey(key.getCategory())) { diff --git a/common/src/main/resources/snowygui-common.mixins.json b/common/src/main/resources/snowygui-common.mixins.json index d89de99..1fe9d0c 100644 --- a/common/src/main/resources/snowygui-common.mixins.json +++ b/common/src/main/resources/snowygui-common.mixins.json @@ -12,6 +12,5 @@ "injectors": { "defaultRequire": 1 }, - "minVersion": "0.8", - "refmap": "snowygui-common-refmap.json" + "minVersion": "0.8" } \ No newline at end of file