mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-18 23:59:05 +00:00
Fix cooldown time usage (#4)
This commit is contained in:
1 parent
dad262c9cb
commit
f3deeacf6d
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user