aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-12-18 02:29:58 +0800
committerGitHub <noreply@github.com>2022-12-17 19:29:58 +0100
commitc5590e230195adf4dfbf3b7334bd662d03b97af1 (patch)
tree1546876dfc8158e4ce201772ce456d645d9daffd /src/main/java/gregtech/api/util
parentfb741083378ed9db85ebcc475d2106d8bb91b49e (diff)
downloadGT5-Unofficial-c5590e230195adf4dfbf3b7334bd662d03b97af1.tar.gz
GT5-Unofficial-c5590e230195adf4dfbf3b7334bd662d03b97af1.tar.bz2
GT5-Unofficial-c5590e230195adf4dfbf3b7334bd662d03b97af1.zip
another attempt at lag fixing (#1556)
* another attempt at lag fixing Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix tests Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * fix tests 2/2 Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * address review Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> * get rid of GT_Test Signed-off-by: Glease <4586901+Glease@users.noreply.github.com> Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/GT_CoverBehaviorBase.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/util/GT_CoverBehaviorBase.java b/src/main/java/gregtech/api/util/GT_CoverBehaviorBase.java
index cfa9b593fa..8991289a78 100644
--- a/src/main/java/gregtech/api/util/GT_CoverBehaviorBase.java
+++ b/src/main/java/gregtech/api/util/GT_CoverBehaviorBase.java
@@ -45,7 +45,11 @@ public abstract class GT_CoverBehaviorBase<T extends ISerializableObject> {
protected GT_CoverBehaviorBase(Class<T> typeToken, ITexture coverTexture) {
this.typeToken = typeToken;
this.coverFGTexture = coverTexture;
- this.colorOverride = new GT_GUIColorOverride(guiTexturePath);
+ reloadColorOverride();
+ }
+
+ public void reloadColorOverride() {
+ this.colorOverride = GT_GUIColorOverride.get(guiTexturePath);
}
public abstract T createDataObject(int aLegacyData);