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

This commit is contained in:
MCTBL authored and GitHub committed 2024-09-08 16:15:15 +02:00
1 parent 41963430dd
commit 9448540466
2 files changed
+8 -5

No files matched your search

@@ -188,13 +188,16 @@ public class FluidCellInventory implements IFluidCellInventory {
@Override
public int getStatusForCell() {
if (this.canHoldNewFluid()) {
if (this.getUsedBytes() == 0) {
return 1;
}
if (this.getRemainingFluidCount() > 0) {
if (this.canHoldNewFluid()) {
return 2;
}
return 3;
if (this.getRemainingFluidCount() > 0) {
return 3;
}
return 4;
}
protected void loadCellFluids() {
@@ -92,8 +92,8 @@ public class FluidCellInventoryHandler extends MEInventoryHandler<IAEFluidStack>
public int getStatusForCell() {
int val = this.getCellInv().getStatusForCell();
if (val == 1 && this.isPreformatted()) {
val = 2;
if ((val == 1 || val == 2) && this.isPreformatted()) {
val = 3;
}
return val;