Read desc
Wait. If the disguise is not able to fetch a UUID. Don't bother making the lookup happen again when someone sees it again. Also, we only cares about one name. The name we called the fetcher with!
This commit is contained in:
		@@ -318,15 +318,9 @@ public class DisguiseUtilities {
 | 
			
		||||
                                final HashMap<String, UUID> map = fetcher.call();
 | 
			
		||||
                                Bukkit.getScheduler().scheduleSyncDelayedTask(libsDisguises, new Runnable() {
 | 
			
		||||
                                    public void run() {
 | 
			
		||||
                                        if (!map.containsKey(playerName)) {
 | 
			
		||||
                                        if (map.containsKey(playerName)) {
 | 
			
		||||
                                            if (namesUuids.containsKey(playerName) && namesUuids.get(playerName) == null) {
 | 
			
		||||
                                                namesUuids.remove(playerName);
 | 
			
		||||
                                            }
 | 
			
		||||
                                        } else {
 | 
			
		||||
                                            for (String name : map.keySet()) {
 | 
			
		||||
                                                if (namesUuids.containsKey(name) && namesUuids.get(name) == null) {
 | 
			
		||||
                                                    namesUuids.put(name, map.get(name).toString());
 | 
			
		||||
                                                }
 | 
			
		||||
                                                namesUuids.put(playerName, map.get(playerName).toString());
 | 
			
		||||
                                            }
 | 
			
		||||
                                            if (DisguiseUtilities.isDisguiseInUse(disguise)) {
 | 
			
		||||
                                                DisguiseUtilities.refreshTrackers((TargetedDisguise) disguise);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user