From cb9274cacbed31df2169438c2d0ffcb2bb9471b6 Mon Sep 17 00:00:00 2001 From: Glease <4586901+Glease@users.noreply.github.com> Date: Sun, 14 Aug 2022 14:54:42 +0800 Subject: do not cache result of GuiColors if the object is not short-lived (#1254) --- src/main/java/gregtech/api/enums/GuiColors.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/gregtech/api') diff --git a/src/main/java/gregtech/api/enums/GuiColors.java b/src/main/java/gregtech/api/enums/GuiColors.java index a78dee5cf3..8c0a32954a 100644 --- a/src/main/java/gregtech/api/enums/GuiColors.java +++ b/src/main/java/gregtech/api/enums/GuiColors.java @@ -78,6 +78,7 @@ public enum GuiColors { GuiColors(final int hex) { this.defaultColor = hex; + this.color = hex; } public void reload(Function l) { -- cgit