Remove unncessary doubled map check

This commit is contained in:
KennyTV 2018-09-30 16:07:08 +02:00
parent 77472cb9f4
commit a206fd7541
2 changed files with 0 additions and 4 deletions

View File

@ -14,8 +14,6 @@ public class HandItemCache extends BukkitRunnable {
private static Map<UUID, Item> handCache = new ConcurrentHashMap<>();
public static Item getHandItem(UUID player) {
if (!handCache.containsKey(player))
return null;
return handCache.get(player);
}

View File

@ -33,8 +33,6 @@ public class HandItemCache implements Runnable {
}
public static Item getHandItem(UUID player) {
if (!handCache.containsKey(player))
return null;
return handCache.get(player);
}