Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
do not show req hint with negative ETA
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveG committed Jun 16, 2016
1 parent 5b4050a commit 7f7be24
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public RequisitionHintTimer(RequisitionManager manager, int interval, JavaPlugin

@Override
public void run() {
if (RequisitionInstance.this != manager.getCurrentRequisition()) {
if (RequisitionInstance.this != manager.getCurrentRequisition()
|| amountRemains <= 0
|| endTime - System.currentTimeMillis() < 100) {
cancel();
} else {
new Message(I18n.get("user.req.hint_req_0")).append(templateItem.itemTemplate,"{itemName}")
Expand Down

0 comments on commit 7f7be24

Please sign in to comment.