From 068af590456f49ee2d6732b73d84fa24176f8927 Mon Sep 17 00:00:00 2001 From: deechael Date: Sun, 13 Oct 2024 19:21:03 +0800 Subject: [PATCH] fix: wrong options in vulkan mod options page --- .../deechael/concentration/fabric/mixin/OptionsMixin.java | 7 +++---- gradle.properties | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fabric/src/main/java/net/deechael/concentration/fabric/mixin/OptionsMixin.java b/fabric/src/main/java/net/deechael/concentration/fabric/mixin/OptionsMixin.java index 2eef7ef..08c9a6c 100644 --- a/fabric/src/main/java/net/deechael/concentration/fabric/mixin/OptionsMixin.java +++ b/fabric/src/main/java/net/deechael/concentration/fabric/mixin/OptionsMixin.java @@ -27,24 +27,23 @@ public class OptionsMixin { Option[] newOptions = new Option[6]; newOptions[0] = options[0]; newOptions[1] = options[1]; - newOptions[2] = new CyclingOption<>( + newOptions[2] = options[2]; + newOptions[3] = new CyclingOption<>( Component.translatable("concentration.option.fullscreen_mode"), FullscreenMode.values(), value -> { ConcentrationConfigFabric.getInstance().fullscreen = value; ConcentrationConfigFabric.getInstance().save(); if (minecraftOptions.fullscreen().get()) { - // If fullscreen turns on, re-toggle to changing the fullscreen mode instantly Concentration.toggleFullScreenMode(minecraftOptions, true); } }, () -> ConcentrationConfigFabric.getInstance().fullscreen ).setTranslator(fullscreenMode -> Component.translatable(fullscreenMode.getKey())); - newOptions[3] = options[3]; newOptions[4] = options[4]; newOptions[5] = options[5]; - Option fullscreenOption = (Option) newOptions[3]; + Option fullscreenOption = (Option) newOptions[2]; fullscreenOption.setOnApply(value -> { Concentration.toggleFullScreenMode(minecraftOptions, value); }); diff --git a/gradle.properties b/gradle.properties index c8051a6..84ca302 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=2.2.3 +version=2.2.4 group=net.deechael.concentration java_version=21