add blue light for drive and ME chest (#75)

This commit is contained in:
MCTBL authored and GitHub committed 2024-09-08 16:15:35 +02:00
1 parent 1830c85fbc
commit 93bed91c09
1 file changed
+7 -2
@@ -57,8 +57,8 @@ public class ItemEssentiaCell extends Item implements ICellHandler {
/**
* Status of the cell.
*/
private static final int CELL_STATUS_MISSING = 0, CELL_STATUS_HAS_ROOM = 1, CELL_STATUS_TYPES_FULL = 2,
CELL_STATUS_FULL = 3;
private static final int CELL_STATUS_MISSING = 0, CELL_STATUS_EMPTY = 1, CELL_STATUS_HAS_ROOM = 2,
CELL_STATUS_TYPES_FULL = 3, CELL_STATUS_FULL = 4;
/**
* Icons for each type.
@@ -262,6 +262,11 @@ public class ItemEssentiaCell extends Item implements ICellHandler {
return ItemEssentiaCell.CELL_STATUS_TYPES_FULL;
}
// Total Empty
if (cellHandler.getUsedBytes() == 0) {
return ItemEssentiaCell.CELL_STATUS_EMPTY;
}
// Full bytes?
if (cellHandler.getUsedBytes() == cellHandler.getTotalBytes()) {
return ItemEssentiaCell.CELL_STATUS_FULL;