Merge pull request #1035 from KennyTV/master

Remove unncessary doubled map check
This commit is contained in:
Myles 2018-09-30 16:16:51 +01:00 committed by GitHub
commit 8b0ccd81e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}