Skip to content

Commit

Permalink
Cap skin packet tracker max entries
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 13, 2022
1 parent 9acf264 commit 3a5e43b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,7 +29,8 @@
*/
public class SkinPacketTracker {
private final SkinnableEntity entity;
private final Map<UUID, PlayerEntry> inProgress = new HashMap<UUID, PlayerEntry>(Bukkit.getMaxPlayers() / 2);
private final Map<UUID, PlayerEntry> inProgress = new HashMap<UUID, PlayerEntry>(
Math.min(1000, Bukkit.getMaxPlayers() / 2));
private boolean isRemoved;
private Skin skin;

Expand Down

0 comments on commit 3a5e43b

Please sign in to comment.