Skip to content

Commit

Permalink
Fix critical bulk cell dupe bug
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Apr 17, 2023
1 parent 452c6f0 commit 9e29f58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ public void appendHoverText(ItemStack is, Level level, @NotNull List<Component>
}
}
} else {
lines.add(Tooltips.of(MEGATranslations.NotPartitioned.text()));
if (storedItem != null) {
lines.add(MEGATranslations.MismatchedFilter.text().withStyle(ChatFormatting.DARK_RED));
} else {
lines.add(MEGATranslations.NotPartitioned.text());
}
}

lines.add(Tooltips.of(MEGATranslations.Compression.text(inv.compressionEnabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ public CellState getStatus() {
if (unitCount.signum() == 0) {
return CellState.EMPTY;
}

if (!storedItem.equals(filterItem)) {
return CellState.FULL;
}

return CellState.NOT_EMPTY;
}

Expand Down Expand Up @@ -155,7 +157,7 @@ public long extract(AEKey what, long amount, Actionable mode, IActionSource sour
return 0;
}

if (compressionEnabled && !storedItem.equals(what)
if (compressionEnabled && !storedItem.equals(what) && !filterItem.equals(what)
&& !compressed.containsKey(item) && !decompressed.containsKey(item)) {
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mavenGroup=gripe.90
minecraftVersion=1.19.2
javaVersion=17

ae2Version=12.9.2
ae2Version=12.9.3
ae2wtVersion=12.8.4
appbotVersion=1.4.1

Expand Down

0 comments on commit 9e29f58

Please sign in to comment.