aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2022-03-05 19:13:08 +0800
committerGlease <4586901+Glease@users.noreply.github.com>2022-03-05 19:13:08 +0800
commitf18d34af64fd80a409aa4b5b9062ff66802054ac (patch)
tree37f09b256adcec3678632f24d7b894cd557f9df7 /src/main/java
parent03ebf4e4093478b0c40b0a0fcae16f39dfaa4eaf (diff)
downloadGT5-Unofficial-f18d34af64fd80a409aa4b5b9062ff66802054ac.tar.gz
GT5-Unofficial-f18d34af64fd80a409aa4b5b9062ff66802054ac.tar.bz2
GT5-Unofficial-f18d34af64fd80a409aa4b5b9062ff66802054ac.zip
Fix IIconContainer not loading, and hence not being registered
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/common/blocks/Block_LapotronicEnergyUnit.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/main/java/common/blocks/Block_LapotronicEnergyUnit.java b/src/main/java/common/blocks/Block_LapotronicEnergyUnit.java
index 8f1d282b33..db55c17610 100644
--- a/src/main/java/common/blocks/Block_LapotronicEnergyUnit.java
+++ b/src/main/java/common/blocks/Block_LapotronicEnergyUnit.java
@@ -23,12 +23,6 @@ public class Block_LapotronicEnergyUnit extends BaseGTUpdateableBlock {
private static final Block_LapotronicEnergyUnit INSTANCE = new Block_LapotronicEnergyUnit();
public enum IconBaseSide implements IIconContainer {
INSTANCE;
- IconBaseSide() {
- // technically, this page is owned by me, glee8e, however, I'm kind enough to spare 1 for kekztech since
- // this is basically abandon ware by now.
- GT_Utility.addTexturePage((byte) 42);
- Textures.BlockIcons.setCasingTexture((byte) 42, (byte) 127, TextureFactory.of(this));
- }
@Override
public IIcon getIcon() {
@@ -46,6 +40,13 @@ public class Block_LapotronicEnergyUnit extends BaseGTUpdateableBlock {
}
}
+ static {
+ // technically, this page is owned by me, glee8e, however, I'm kind enough to spare 1 for kekztech since
+ // this is basically abandon ware by now.
+ GT_Utility.addTexturePage((byte) 42);
+ Textures.BlockIcons.setCasingTexture((byte) 42, (byte) 127, TextureFactory.of(IconBaseSide.INSTANCE));
+ }
+
private IIcon iconBaseSide;
private IIcon iconBaseTop;