aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-08-14 14:54:42 +0800
committerGitHub <noreply@github.com>2022-08-14 08:54:42 +0200
commitcb9274cacbed31df2169438c2d0ffcb2bb9471b6 (patch)
tree607e4e6955c72364eaf45fe5a49824111f57baa6 /src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
parent35c9f23b9c7667250ebd589a52c2f2b1cc01bb62 (diff)
downloadGT5-Unofficial-cb9274cacbed31df2169438c2d0ffcb2bb9471b6.tar.gz
GT5-Unofficial-cb9274cacbed31df2169438c2d0ffcb2bb9471b6.tar.bz2
GT5-Unofficial-cb9274cacbed31df2169438c2d0ffcb2bb9471b6.zip
do not cache result of GuiColors if the object is not short-lived (#1254)
Diffstat (limited to 'src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java')
-rw-r--r--src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
index b51ffff486..a157377315 100644
--- a/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
+++ b/src/main/java/gregtech/common/covers/GT_Cover_ItemMeter.java
@@ -39,8 +39,6 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase<GT_Cover_ItemMeter.
private static final int CONVERTED_BIT = 0x80000000;
private static final int INVERT_BIT = 0x40000000;
- private final int textColor = GuiColors.coverItemMeter.getColor();
-
public GT_Cover_ItemMeter() {
super(ItemMeterData.class);
}
@@ -290,6 +288,8 @@ public class GT_Cover_ItemMeter extends GT_CoverBehaviorBase<GT_Cover_ItemMeter.
private final String INVERTED = GT_Utility.trans("INVERTED", "Inverted");
private final String NORMAL = GT_Utility.trans("NORMAL", "Normal");
+ private final int textColor = GuiColors.coverItemMeter.getColor();
+
public GUI(byte aSide, int aCoverID, ItemMeterData aCoverVariable, ICoverable aTileEntity) {
super(aTileEntity, 176, 107, GT_Utility.intToStack(aCoverID));
this.side = aSide;