mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 11:03:43 +01:00 
			
		
		
		
	Fix dupe bug
This commit is contained in:
		@@ -124,6 +124,16 @@ public class TransientEntityTracker {
 | 
			
		||||
        addToChunkLookupCache(trackedTamingEntity);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Checks if a living entity is a summon
 | 
			
		||||
     *
 | 
			
		||||
     * @param livingEntity target livinig entity
 | 
			
		||||
     * @return true if target living entity is a summon
 | 
			
		||||
     */
 | 
			
		||||
    public synchronized boolean isTransientSummon(@NotNull LivingEntity livingEntity) {
 | 
			
		||||
        return getChunkLookupCache().contains(livingEntity);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Get the tracked taming entities for a player
 | 
			
		||||
     * If the player isn't registered this will return null
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user