mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 20:52:11 +00:00
Fix Collapsed Recipes in Bookmarks (#905)
This commit is contained in:
1 parent
10a3109714
commit
bcc25d4369
10 files changed
+59
-48
No files matched your search
@@ -371,8 +371,8 @@ public class RecipeChainMath {
|
||||
addRequiredAmount(prefItem, ingrAmount, Long.MAX_VALUE);
|
||||
} else {
|
||||
addRequiredAmount(prefItem, ingrAmount, Long.MAX_VALUE);
|
||||
final long multiplier = prefItem
|
||||
.getMultiplierFromAmount(this.requiredAmount.get(prefItem) - prefItem.getAmount());
|
||||
final long multiplier = Math
|
||||
.max(0, prefItem.getMultiplierFromAmount(this.requiredAmount.get(prefItem)) - prefItem.multiplier);
|
||||
|
||||
if (multiplier > 0) {
|
||||
addShift(prefItem.recipeId, multiplier);
|
||||
|
||||
Reference in new issue
Block a user