WarehouseCacheManager use of longValue method.

This commit is contained in:
MobiusDevelopment
2020-07-04 04:45:25 +00:00
parent 14e6131507
commit 420ad7ce51
19 changed files with 19 additions and 19 deletions

View File

@@ -55,7 +55,7 @@ public class WarehouseCacheManager
final long cTime = System.currentTimeMillis();
for (Entry<PlayerInstance, Long> entry : CACHED_WH.entrySet())
{
if ((cTime - entry.getValue()) > CACHE_TIME)
if ((cTime - entry.getValue().longValue()) > CACHE_TIME)
{
final PlayerInstance player = entry.getKey();
player.clearWarehouse();