mojira.dev
MC-274049

Each vault can only track up to 128 players, if 128 players have already opened the vault and another new player opens the vault, the first player tracked by the vault will be forgotten and becomes able to open the vault again

The bug

Each vault can only track up to 128 players, if 128 players have already opened the vault and another new player opens the vault, the first player tracked by the vault will be forgotten and becomes able to open the vault again.

How to reproduce

Unable to reproduce in vanilla singleplayer, unless installing mod such as carpet or play a server with enough players.

Expected results

Each vault can track infinite players.

Observed results

Each vault can only track 128 players.

Code Analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 6

Is there a way to reproduce this? Even without players; just some proof in the game that shows only 128 players can be stored.

You can installing a mod called carpet to simulate the multiple players, just look at the vault and summon a bot then make the bot execute the use action.

/player (name) summon

/player (name) use

@unknown Preferably without mods? Maybe a code analysis?

Although I can only reproduce this issue with the mod, I can confirm that this also happens in the vanilla.

(Edit: the bots of the mod have same feature like regular players)

I can confirm in vanilla by doing a code analysis of Minecraft 1.21 (Yarn mappings).

In VaultServerData.class, the following (self-explanatory) constant is defined:

private static final int MAX_STORED_REWARDED_PLAYERS = 128;
private static final int MAX_STORED_REWARDED_PLAYERS = 128;

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

4ebugger

(Unassigned)

Community Consensus

Block states

1.21

Retrieved