mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Cap skinupdatetracker map size
This commit is contained in:
parent
732716215e
commit
14a6004adf
@ -38,7 +38,7 @@ import net.citizensnpcs.util.Util;
|
||||
public class SkinUpdateTracker {
|
||||
private final Map<SkinnableEntity, Void> navigating = new WeakHashMap<SkinnableEntity, Void>(25);
|
||||
private final Map<UUID, PlayerTracker> playerTrackers = new HashMap<UUID, PlayerTracker>(
|
||||
Math.max(128, Bukkit.getMaxPlayers() / 2));
|
||||
Math.max(128, Math.min(1024, Bukkit.getMaxPlayers() / 2)));
|
||||
private final Map<String, NPCRegistry> registries;
|
||||
private final NPCNavigationUpdater updater = new NPCNavigationUpdater();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user