Fix issue with entities not sending energy on sides correctly
@@ -70,11 +70,11 @@ public class TileComponentConfig implements ITileComponent
SideConfig config = getConfig(type);
EnumFacing[] translatedFacings = MekanismUtils.getBaseOrientations(facing);
- for(int i = 0; i < EnumFacing.VALUES.length; i++)
+ for(EnumFacing sideToCheck : EnumFacing.values())
{
- if(config.get(translatedFacings[i]) == dataIndex)
+ if(config.get(translatedFacings[sideToCheck.ordinal()]) == dataIndex)
{
- ret.add(translatedFacings[i]);
+ ret.add(sideToCheck);
}
}
