Make categoryMap final in KeyMappings.java
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
76b17d0c97
commit
08094e87de
@ -25,7 +25,7 @@ abstract 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) {
|
||||||
var categoryMap = KeysAccessor.getSortedCategoryMap();
|
final var categoryMap = KeysAccessor.getSortedCategoryMap();
|
||||||
var newKeys = Lists.newArrayList(keyMappings);
|
var newKeys = Lists.newArrayList(keyMappings);
|
||||||
for (KeyMapping key : keysToAdd) {
|
for (KeyMapping key : keysToAdd) {
|
||||||
if (!categoryMap.containsKey(key.getCategory())) {
|
if (!categoryMap.containsKey(key.getCategory())) {
|
||||||
|
@ -12,6 +12,5 @@
|
|||||||
"injectors": {
|
"injectors": {
|
||||||
"defaultRequire": 1
|
"defaultRequire": 1
|
||||||
},
|
},
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8"
|
||||||
"refmap": "snowygui-common-refmap.json"
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user