mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fix statistics gui crashing when handling input events (#5435)
This commit is contained in:
1 parent
71dd5c9f4d
commit
febae7f8f2
1 file changed
+12
@@ -0,0 +1,12 @@
|
||||
--- a/net/minecraft/client/gui/achievement/GuiStats.java
|
||||
+++ b/net/minecraft/client/gui/achievement/GuiStats.java
|
||||
@@ -118,8 +118,8 @@
|
||||
public void func_193026_g() {
|
||||
if (this.field_146543_v) {
|
||||
this.func_193028_a();
|
||||
- this.func_193029_f();
|
||||
this.field_146545_u = this.field_146550_h;
|
||||
+ this.func_193029_f(); //Forge: Bugfix, initButtons adds displaySlot to children, so set it first to prevent NPE
|
||||
this.field_146543_v = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user