Skip to content

Commit

Permalink
add blue light for drive and ME chest (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCTBL authored Sep 8, 2024
1 parent 4196343 commit 9448540
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,16 @@ public int getUnusedFluidCount() {

@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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public IncludeExclude getIncludeExcludeMode() {
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;
Expand Down

0 comments on commit 9448540

Please sign in to comment.