Skip to content

Commit

Permalink
do not check tooltip nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyDynamic committed May 26, 2024
1 parent afb7d78 commit e8b0deb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ private void setButtonActive(CallbackInfo ci) {
.filter(it -> ((ClickableWidget) it).getMessage().toString().contains("menu.singleplayer"))
.forEach(e -> {
((ButtonWidget) e).active = true;
if (((ButtonWidget) e).getTooltip() != null) {
((ButtonWidget) e).setTooltip(null);
}
//#if MC>=11900
((ButtonWidget) e).setTooltip(null);
//#endif
});
}
}
Expand Down

0 comments on commit e8b0deb

Please sign in to comment.