From febae7f8f2eea557f9ea5c35e129415625c09ba7 Mon Sep 17 00:00:00 2001 From: Merlin Addams Date: Wed, 6 Feb 2019 23:12:15 +0000 Subject: [PATCH] Fix statistics gui crashing when handling input events (#5435) --- .../client/gui/achievement/GuiStats.java.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/minecraft/net/minecraft/client/gui/achievement/GuiStats.java.patch diff --git a/patches/minecraft/net/minecraft/client/gui/achievement/GuiStats.java.patch b/patches/minecraft/net/minecraft/client/gui/achievement/GuiStats.java.patch new file mode 100644 index 000000000..43d0962b1 --- /dev/null +++ b/patches/minecraft/net/minecraft/client/gui/achievement/GuiStats.java.patch @@ -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; + } +