aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks/GT_Block_Ores.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-04-22 22:33:35 -0700
committerGitHub <noreply@github.com>2023-04-23 07:33:35 +0200
commit56f2269f4af6d2130bdb2b6e6ac6e13bce89e47b (patch)
tree745e6d92025ec4ef449fc59fa5fdd741200b0489 /src/main/java/gregtech/common/blocks/GT_Block_Ores.java
parentac0b7a7da46646d325def36eed811941dbfc5950 (diff)
downloadGT5-Unofficial-56f2269f4af6d2130bdb2b6e6ac6e13bce89e47b.tar.gz
GT5-Unofficial-56f2269f4af6d2130bdb2b6e6ac6e13bce89e47b.tar.bz2
GT5-Unofficial-56f2269f4af6d2130bdb2b6e6ac6e13bce89e47b.zip
Forge direction (#1895)
* ForgeDirection Also refactor the clusterfuck that was `getCoordinateScan` Co-authored by: Jason Mitchell <mitchej@gmail.com> * Fix rendering of Frame Boxes Frame boxes needed their own implementation of getTexture with int connexion mask, which is returning an error texture for the MetaTileEntity, because pipes (FrameBox **is** a pipe) do use this method to return different textures based on connexion status. --------- Co-authored-by: Léa Gris <lea.gris@noiraude.net>
Diffstat (limited to 'src/main/java/gregtech/common/blocks/GT_Block_Ores.java')
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Ores.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Ores.java b/src/main/java/gregtech/common/blocks/GT_Block_Ores.java
index 11768763a8..1bfd24f75c 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Ores.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Ores.java
@@ -47,16 +47,16 @@ public class GT_Block_Ores extends GT_Block_Ores_Abstract {
@Override
@SideOnly(Side.CLIENT)
- public IIcon getIcon(int side, int meta) {
+ public IIcon getIcon(int ordinalSide, int meta) {
int index = ((meta / 1000) % 16);
return switch (index) {
- case 1 -> Blocks.netherrack.getIcon(side, 0);
- case 2 -> Blocks.end_stone.getIcon(side, 0);
+ case 1 -> Blocks.netherrack.getIcon(ordinalSide, 0);
+ case 2 -> Blocks.end_stone.getIcon(ordinalSide, 0);
case 3 -> GRANITE_BLACK_STONE.getIcon();
case 4 -> GRANITE_RED_STONE.getIcon();
case 5 -> MARBLE_STONE.getIcon();
case 6 -> BASALT_STONE.getIcon();
- default -> Blocks.stone.getIcon(side, 0);
+ default -> Blocks.stone.getIcon(ordinalSide, 0);
};
}