Make categoryMap final in KeyMappings.java

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-01-16 14:18:54 +01:00
parent 76b17d0c97
commit 08094e87de
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@ abstract class KeyMappings {
@Inject(method = "<init>*", 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())) {

View File

@ -12,6 +12,5 @@
"injectors": {
"defaultRequire": 1
},
"minVersion": "0.8",
"refmap": "snowygui-common-refmap.json"
"minVersion": "0.8"
}