shedaniel / slight-gui-modifications

GNU Affero General Public License v3.0
24 stars 11 forks source link

Crash in 1.20.1 from getRealmsPeriodicCheckers() because "this.client" is null #100

Open Trent2087 opened 1 year ago

Trent2087 commented 1 year ago

This happens with clearAllButtons() The crash happens when entering options, multiplayer, single player etc screens and then trying to go back to the title screen. I also tried re-adding a button with onClicked = realms() but that did not prevent the crash.

Only slight-gui-modifications-2.6.1+ dependencies + ModMenu and FabricAPI

Description: mouseClicked event handler java.lang.NullPointerException: Cannot invoke "net.minecraft.client.MinecraftClient.getRealmsPeriodicCheckers()" because "this.client" is null at net.minecraft.client.realms.gui.screen.RealmsNotificationsScreen.onDisplayed(RealmsNotificationsScreen.java:54) https://hastebin.com/share/irobufesum.yaml