diff options
author | Martin Robertz <dream-master@gmx.net> | 2022-03-05 12:25:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-05 12:25:39 +0100 |
commit | 8bce1d6c7cfca801936cec724b7ac30fa0dc6af3 (patch) | |
tree | 37f09b256adcec3678632f24d7b894cd557f9df7 /src/main | |
parent | 03ebf4e4093478b0c40b0a0fcae16f39dfaa4eaf (diff) | |
parent | f18d34af64fd80a409aa4b5b9062ff66802054ac (diff) | |
download | GT5-Unofficial-8bce1d6c7cfca801936cec724b7ac30fa0dc6af3.tar.gz GT5-Unofficial-8bce1d6c7cfca801936cec724b7ac30fa0dc6af3.tar.bz2 GT5-Unofficial-8bce1d6c7cfca801936cec724b7ac30fa0dc6af3.zip |
Merge pull request #28 from GTNewHorizons/fix/lsc-texture
Fix IIconContainer not loading, and hence not being registered
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/common/blocks/Block_LapotronicEnergyUnit.java | 13 |
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; |