Skip to content

Commit

Permalink
Fix cooldown time usage (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
socolio authored Feb 21, 2022
1 parent dad262c commit f3deeac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SearchCooldownService {
* @return true if player has active cooldown
*/
public boolean checkSearchCooldown(EntityPlayerMP player) {
long time = player.getEntityWorld().getTotalWorldTime();
long time = player.getServerForPlayer().func_73046_m().getTickCounter();
Long lastTime = lastSearchTime.get(player);

if (lastTime != null && time - lastTime < FindItConfig.SEARCH_COOLDOWN) {
Expand Down

0 comments on commit f3deeac

Please sign in to comment.