Rename keysAccessor to KeysAccessor.
This commit is contained in:
parent
47b9220ade
commit
073e3e64cb
|
@ -26,7 +26,7 @@ class KeyMappings {
|
||||||
|
|
||||||
@Inject(method = "<init>*", at = @At("RETURN"))
|
@Inject(method = "<init>*", at = @At("RETURN"))
|
||||||
private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) {
|
private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) {
|
||||||
Map<String, Integer> categoryMap = keysAccessor.getSortedCategoryMap();
|
Map<String, Integer> categoryMap = KeysAccessor.getSortedCategoryMap();
|
||||||
List<KeyMapping> newKeys = Lists.newArrayList(keyMappings);
|
List<KeyMapping> newKeys = Lists.newArrayList(keyMappings);
|
||||||
for (KeyMapping key : keysToAdd) {
|
for (KeyMapping key : keysToAdd) {
|
||||||
if (!categoryMap.containsKey(key.getCategory())) {
|
if (!categoryMap.containsKey(key.getCategory())) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.gen.Accessor;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Mixin(KeyMapping.class)
|
@Mixin(KeyMapping.class)
|
||||||
public interface keysAccessor {
|
public interface KeysAccessor {
|
||||||
@Accessor("CATEGORY_SORT_ORDER")
|
@Accessor("CATEGORY_SORT_ORDER")
|
||||||
static Map<String, Integer> getSortedCategoryMap() { throw new AssertionError(); }
|
static Map<String, Integer> getSortedCategoryMap() { throw new AssertionError(); }
|
||||||
}
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
"package": "fr.username404.snowygui.mixins",
|
"package": "fr.username404.snowygui.mixins",
|
||||||
"compatibilityLevel": "JAVA_8",
|
"compatibilityLevel": "JAVA_8",
|
||||||
"client": [
|
"client": [
|
||||||
"keysAccessor",
|
"KeysAccessor",
|
||||||
"KeyMappings"
|
"KeyMappings"
|
||||||
],
|
],
|
||||||
"injectors": {
|
"injectors": {
|
||||||
|
|
Loading…
Reference in New Issue