diff options
| author | Aizistral | 2023-05-17 12:42:33 +0200 |
|---|---|---|
| committer | Aizistral | 2023-05-17 12:42:33 +0200 |
| commit | 2640aac9fe9127d16f693571c1f3b901afa60d32 (patch) | |
| tree | 82c2d4ef0bd5073e672c760dc096feaeae7118ae /src/main/java | |
| parent | 4bfec9b41d9dc9ec4db3b0de1f8f90544096c65e (diff) | |
Fix button position in multiplayer screen
Fixes #386
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java index 4f99934..4e2e2d5 100644 --- a/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java +++ b/src/main/java/com/aizistral/nochatreports/common/mixins/client/MixinJoinMultiplayerScreen.java @@ -37,7 +37,7 @@ public abstract class MixinJoinMultiplayerScreen extends Screen { @Inject(method = "init", at = @At("HEAD")) private void onInit(CallbackInfo info) { if (NCRConfig.getClient().showReloadButton()) { - var button = new AdvancedImageButton(this.width/2 + 158, this.height - 52, 20, 20, 0, 0, 20, + var button = new AdvancedImageButton(this.width/2 + 158, this.height - 54, 20, 20, 0, 0, 20, RELOAD_TEXTURE, 64, 64, btn -> NCRConfig.load(), CommonComponents.EMPTY, this); button.setTooltip(new AdvancedTooltip(RELOAD_TOOLTIP).setMaxWidth(250).setRenderWithoutGap(true)); button.active = true; @@ -46,7 +46,7 @@ public abstract class MixinJoinMultiplayerScreen extends Screen { } if (NCRConfig.getClient().showNCRButton()) { - var button = new AdvancedImageButton(this.width/2 + 158, this.height - 28, 20, 20, + var button = new AdvancedImageButton(this.width/2 + 158, this.height - 30, 20, 20, NCRConfig.getClient().enableMod() ? 0 : 20, 0, 20, TOGGLE_TEXTURE, 64, 64, btn -> { NCRConfig.getClient().toggleMod(); |
