Render cells in offline drives as offline.

This commit is contained in:
yueh
2020-06-28 20:01:22 +02:00
parent 6bbea481b8
commit 130fc74768
@@ -125,6 +125,10 @@ public class DriveLedTileEntityRenderer extends TileEntityRenderer<DriveTileEnti
return null;
}
if (!drive.isPowered()) {
return STATE_COLORS.get(DriveSlotState.OFFLINE);
}
Vector3f col = STATE_COLORS.get(state);
if (drive.isCellBlinking(slot)) {
// 200 ms interval (100ms to get to red, then 100ms back)