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 9cb4a2b..9834630 100644 --- a/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java +++ b/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java @@ -26,7 +26,7 @@ class KeyMappings { @Inject(method = "*", at = @At("RETURN")) private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) { - Map categoryMap = keysAccessor.getSortedCategoryMap(); + Map categoryMap = KeysAccessor.getSortedCategoryMap(); List newKeys = Lists.newArrayList(keyMappings); for (KeyMapping key : keysToAdd) { if (!categoryMap.containsKey(key.getCategory())) { diff --git a/common/src/main/java/fr/username404/snowygui/mixins/keysAccessor.java b/common/src/main/java/fr/username404/snowygui/mixins/KeysAccessor.java similarity index 91% rename from common/src/main/java/fr/username404/snowygui/mixins/keysAccessor.java rename to common/src/main/java/fr/username404/snowygui/mixins/KeysAccessor.java index 1f710ca..39039da 100644 --- a/common/src/main/java/fr/username404/snowygui/mixins/keysAccessor.java +++ b/common/src/main/java/fr/username404/snowygui/mixins/KeysAccessor.java @@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.gen.Accessor; import java.util.Map; @Mixin(KeyMapping.class) -public interface keysAccessor { +public interface KeysAccessor { @Accessor("CATEGORY_SORT_ORDER") static Map getSortedCategoryMap() { throw new AssertionError(); } } diff --git a/common/src/main/resources/snowygui-mixins.json b/common/src/main/resources/snowygui-mixins.json index c41898f..2384447 100644 --- a/common/src/main/resources/snowygui-mixins.json +++ b/common/src/main/resources/snowygui-mixins.json @@ -3,7 +3,7 @@ "package": "fr.username404.snowygui.mixins", "compatibilityLevel": "JAVA_8", "client": [ - "keysAccessor", + "KeysAccessor", "KeyMappings" ], "injectors": {