Skip to content

Commit

Permalink
prevented over-stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigereye504 committed Nov 14, 2020
1 parent 6548b6a commit 137b527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void evaluateChestCavity() {
Map<Identifier, Float> organMap = lookupOrganScore(itemStack);
if (lookupOrganScore(itemStack) != null) {
organMap.forEach((key, value) ->
addOrganScore(key, value * itemStack.getCount() / itemStack.getMaxCount()));
addOrganScore(key, value * Math.min((itemStack.getCount() / itemStack.getMaxCount()),1)));
}
}

Expand Down

0 comments on commit 137b527

Please sign in to comment.