aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/blocks
diff options
context:
space:
mode:
authorAlexdoru <57050655+Alexdoru@users.noreply.github.com>2024-09-02 20:48:15 +0200
committerGitHub <noreply@github.com>2024-09-02 20:48:15 +0200
commit2beddd5c8db8fcf727607112d5287ab460d567bd (patch)
tree3364864085c3a960f0f4722952d2170d278b7110 /src/main/java/gregtech/common/blocks
parenteac418f191d9639c61a4cbd4cf3eea7c783cd3f7 (diff)
downloadGT5-Unofficial-2beddd5c8db8fcf727607112d5287ab460d567bd.tar.gz
GT5-Unofficial-2beddd5c8db8fcf727607112d5287ab460d567bd.tar.bz2
GT5-Unofficial-2beddd5c8db8fcf727607112d5287ab460d567bd.zip
change loops on METATILEENTITIES to all start at 1 for consistency (#3017)
Diffstat (limited to 'src/main/java/gregtech/common/blocks')
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Machines.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
index dad96c9222..2f80929d94 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java
@@ -37,7 +37,6 @@ import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.IDebugableBlock;
-import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IColoredTileEntity;
import gregtech.api.interfaces.tileentity.ICoverable;
import gregtech.api.interfaces.tileentity.IDebugableTileEntity;
@@ -315,9 +314,9 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo
GT_Log.out.println("GT_Mod: Registering MetaTileEntity specific Textures");
try {
- for (IMetaTileEntity tMetaTileEntity : GregTech_API.METATILEENTITIES) {
- if (tMetaTileEntity != null) {
- tMetaTileEntity.registerIcons(aIconRegister);
+ for (int i = 1; i < GregTech_API.METATILEENTITIES.length; i++) {
+ if (GregTech_API.METATILEENTITIES[i] != null) {
+ GregTech_API.METATILEENTITIES[i].registerIcons(aIconRegister);
}
}
} catch (Exception e) {