mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-30 23:47:33 +02: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<>();
|
private static Map<UUID, Item> handCache = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
public static Item getHandItem(UUID player) {
|
public static Item getHandItem(UUID player) {
|
||||||
if (!handCache.containsKey(player))
|
|
||||||
return null;
|
|
||||||
return handCache.get(player);
|
return handCache.get(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@ public class HandItemCache implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Item getHandItem(UUID player) {
|
public static Item getHandItem(UUID player) {
|
||||||
if (!handCache.containsKey(player))
|
|
||||||
return null;
|
|
||||||
return handCache.get(player);
|
return handCache.get(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user