mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-31 15:49:32 +01:00
Remove unncessary doubled map check
This commit is contained in:
parent
77472cb9f4
commit
a206fd7541
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user