Fix dupe bug

This commit is contained in:
nossr50
2021-01-01 22:15:44 -08:00
parent 1408065768
commit bec54d93ac
3 changed files with 20 additions and 3 deletions

View File

@ -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