Skip to content

Commit

Permalink
Fixed online button not being removed ingame
Browse files Browse the repository at this point in the history
  • Loading branch information
TomB-134 committed Dec 19, 2021
1 parent e7a28ab commit b2842b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn_mappings = 1.18.1+build.2
loader_version = 0.12.11

#Mod properties
mod_version = 1.18.1-0.0.9
mod_version = 1.18.1-0.1.1
maven_group = minimalmenu
archives_base_name = minimalmenu

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/minimalmenu/mixin/OptionsScreenMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public abstract class OptionsScreenMixin extends ScreenMixin {
protected void init(CallbackInfo info) {
if (ConfigHandler.REMOVE_ONLINE) {
for (ClickableWidget button : Screens.getButtons((Screen)(Object)this)) {
if (this.client.world == null) {
if (!this.client.isInSingleplayer()) {
if (MinimalMenu.buttonMatchesKey(button, "options.online")) {
button.visible = false;
}
Expand Down

0 comments on commit b2842b0

Please sign in to comment.