fix: crash with sodium
This commit is contained in:
parent
01758809b8
commit
f868af2020
@ -48,8 +48,9 @@ public class SodiumVideoOptionsScreenMixin {
|
|||||||
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
||||||
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
||||||
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
||||||
Component.translatable("concentration.option.fullscreen_mode.borderless"),
|
Component.translatable("concentration.option.fullscreen_mode.exclusive"),
|
||||||
Component.translatable("concentration.option.fullscreen_mode.native")
|
Component.translatable("concentration.option.fullscreen_mode.native"),
|
||||||
|
Component.translatable("concentration.option.fullscreen_mode.borderless")
|
||||||
}))
|
}))
|
||||||
.setBinding((options, value) -> {
|
.setBinding((options, value) -> {
|
||||||
ConcentrationConfigFabric.getInstance().fullscreen = value;
|
ConcentrationConfigFabric.getInstance().fullscreen = value;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
version=2.2.0
|
version=2.2.1
|
||||||
group=net.deechael.concentration
|
group=net.deechael.concentration
|
||||||
java_version=21
|
java_version=21
|
||||||
|
|
||||||
|
@ -31,8 +31,9 @@ public class EmbeddiumCompat {
|
|||||||
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
||||||
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
||||||
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
||||||
Component.translatable("concentration.option.fullscreen_mode.borderless"),
|
Component.translatable("concentration.option.fullscreen_mode.exclusive"),
|
||||||
Component.translatable("concentration.option.fullscreen_mode.native")
|
Component.translatable("concentration.option.fullscreen_mode.native"),
|
||||||
|
Component.translatable("concentration.option.fullscreen_mode.borderless")
|
||||||
}))
|
}))
|
||||||
.setBinding((vanillaOpts, value) -> {
|
.setBinding((vanillaOpts, value) -> {
|
||||||
ConcentrationConfigNeoForge.ensureLoaded().setFullscreenMode(value);
|
ConcentrationConfigNeoForge.ensureLoaded().setFullscreenMode(value);
|
||||||
|
@ -48,8 +48,9 @@ public class SodiumVideoOptionsScreenMixin {
|
|||||||
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
.setName(Component.translatable("concentration.option.fullscreen_mode"))
|
||||||
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
.setTooltip(Component.translatable("concentration.option.fullscreen_mode.tooltip"))
|
||||||
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
.setControl((opt) -> new CyclingControl<>(opt, FullscreenMode.class, new Component[]{
|
||||||
Component.translatable("concentration.option.fullscreen_mode.borderless"),
|
Component.translatable("concentration.option.fullscreen_mode.exclusive"),
|
||||||
Component.translatable("concentration.option.fullscreen_mode.native")
|
Component.translatable("concentration.option.fullscreen_mode.native"),
|
||||||
|
Component.translatable("concentration.option.fullscreen_mode.borderless")
|
||||||
}))
|
}))
|
||||||
.setBinding((options, value) -> {
|
.setBinding((options, value) -> {
|
||||||
ConcentrationConfigNeoForge.FULLSCREEN.set(value);
|
ConcentrationConfigNeoForge.FULLSCREEN.set(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user