Skip to content

Commit

Permalink
feat: show infinity symbol on creative items
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Dec 31, 2023
1 parent 5d89d3d commit 0f589b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### Changed

- The Portable Grid now shows an energy bar in the UI.
- The energy bar on creative items now shows the infinity symbol instead of the whole amount.

## [2.0.0-milestone.3.2] - 2023-11-03

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public static MutableComponent createStoredWithCapacityTranslation(
return createTranslation(
"misc",
"stored_with_capacity",
AmountFormatting.format(stored),
AmountFormatting.format(capacity),
stored == Long.MAX_VALUE ? "∞" : AmountFormatting.format(stored),
capacity == Long.MAX_VALUE ? "∞" : AmountFormatting.format(capacity),
String.valueOf((int) (pct * 100D))
);
}
Expand Down

0 comments on commit 0f589b1

Please sign in to comment.