Skip to content

Commit

Permalink
Fix multiblocks displaying output x 0 (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoleFish authored Nov 22, 2024
1 parent edf1500 commit e830a6f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2507,12 +2507,12 @@ protected String generateCurrentRecipeInfoString() {
};

int lines = 0;
int MAX_LINES = 5;
int MAX_LINES = 10;

if (mOutputItems != null) {
HashMap<String, Long> nameToAmount = new HashMap<>();
for (var item : mOutputItems) {
if (item == null) continue;
if (item == null || item.stackSize <= 0) continue;
nameToAmount.merge(item.getDisplayName(), (long) item.stackSize, Long::sum);
}
for (Map.Entry<String, Long> entry : nameToAmount.entrySet()) {
Expand All @@ -2535,7 +2535,7 @@ protected String generateCurrentRecipeInfoString() {
if (mOutputFluids != null) {
HashMap<String, Long> nameToAmount = new HashMap<>();
for (var fluid : mOutputFluids) {
if (fluid == null) continue;
if (fluid == null || fluid.amount <= 0) continue;
nameToAmount.merge(fluid.getLocalizedName(), (long) fluid.amount, Long::sum);
}
for (Map.Entry<String, Long> entry : nameToAmount.entrySet()) {
Expand Down

0 comments on commit e830a6f

Please sign in to comment.