mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-24 01:17:40 +01:00
Merge pull request #1035 from KennyTV/master
Remove unncessary doubled map check
This commit is contained in:
commit
8b0ccd81e2
@ -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