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 b650050..88c2318 100644 --- a/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java +++ b/common/src/main/java/fr/username404/snowygui/mixins/KeyMappings.java @@ -15,8 +15,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import java.io.File; import java.util.Collection; -import java.util.List; -import java.util.Map; import java.util.Optional; @Mixin(Options.class) @@ -27,8 +25,8 @@ abstract class KeyMappings { @Inject(method = "*", at = @At("RETURN")) private void onSettingsConstructed(Minecraft minecraft, File file, CallbackInfo ci) { - Map categoryMap = KeysAccessor.getSortedCategoryMap(); - List newKeys = Lists.newArrayList(keyMappings); + var categoryMap = KeysAccessor.getSortedCategoryMap(); + var newKeys = Lists.newArrayList(keyMappings); for (KeyMapping key : keysToAdd) { if (!categoryMap.containsKey(key.getCategory())) { Optional biggest = categoryMap.values().stream().max(Integer::compareTo);