fix: wrong options in vulkan mod options page
This commit is contained in:
parent
27b5414d48
commit
068af59045
@ -27,24 +27,23 @@ public class OptionsMixin {
|
|||||||
Option<?>[] newOptions = new Option<?>[6];
|
Option<?>[] newOptions = new Option<?>[6];
|
||||||
newOptions[0] = options[0];
|
newOptions[0] = options[0];
|
||||||
newOptions[1] = options[1];
|
newOptions[1] = options[1];
|
||||||
newOptions[2] = new CyclingOption<>(
|
newOptions[2] = options[2];
|
||||||
|
newOptions[3] = new CyclingOption<>(
|
||||||
Component.translatable("concentration.option.fullscreen_mode"),
|
Component.translatable("concentration.option.fullscreen_mode"),
|
||||||
FullscreenMode.values(),
|
FullscreenMode.values(),
|
||||||
value -> {
|
value -> {
|
||||||
ConcentrationConfigFabric.getInstance().fullscreen = value;
|
ConcentrationConfigFabric.getInstance().fullscreen = value;
|
||||||
ConcentrationConfigFabric.getInstance().save();
|
ConcentrationConfigFabric.getInstance().save();
|
||||||
if (minecraftOptions.fullscreen().get()) {
|
if (minecraftOptions.fullscreen().get()) {
|
||||||
// If fullscreen turns on, re-toggle to changing the fullscreen mode instantly
|
|
||||||
Concentration.toggleFullScreenMode(minecraftOptions, true);
|
Concentration.toggleFullScreenMode(minecraftOptions, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
() -> ConcentrationConfigFabric.getInstance().fullscreen
|
() -> ConcentrationConfigFabric.getInstance().fullscreen
|
||||||
).setTranslator(fullscreenMode -> Component.translatable(fullscreenMode.getKey()));
|
).setTranslator(fullscreenMode -> Component.translatable(fullscreenMode.getKey()));
|
||||||
newOptions[3] = options[3];
|
|
||||||
newOptions[4] = options[4];
|
newOptions[4] = options[4];
|
||||||
newOptions[5] = options[5];
|
newOptions[5] = options[5];
|
||||||
|
|
||||||
Option<Boolean> fullscreenOption = (Option<Boolean>) newOptions[3];
|
Option<Boolean> fullscreenOption = (Option<Boolean>) newOptions[2];
|
||||||
fullscreenOption.setOnApply(value -> {
|
fullscreenOption.setOnApply(value -> {
|
||||||
Concentration.toggleFullScreenMode(minecraftOptions, value);
|
Concentration.toggleFullScreenMode(minecraftOptions, value);
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version=2.2.3
|
version=2.2.4
|
||||||
group=net.deechael.concentration
|
group=net.deechael.concentration
|
||||||
java_version=21
|
java_version=21
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user