Skip to content

Commit

Permalink
revert 'fix usable items overcounting by 16 seconds'
Browse files Browse the repository at this point in the history
  • Loading branch information
triphora committed Jul 15, 2021
1 parent 0a1b411 commit 3459911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/frydae/emcutils/features/UsableItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public UsableItems() {

long untilUsable = getSecondsUntilUsable(itemStack);

if (untilUsable > 16) {
list.add(new LiteralText("Usable in: " + formatTime(untilUsable - 16, 1)).formatted(Formatting.RED));
if (untilUsable > 0) {
list.add(new LiteralText("Usable in: " + formatTime(untilUsable, 1)).formatted(Formatting.RED));
} else {
list.add(new LiteralText("Can be used now").formatted(Formatting.GREEN));
}
Expand Down

0 comments on commit 3459911

Please sign in to comment.