Skip to content

Conversation

@contariaa
Copy link
Member

There is only 3 places where the UserCache is ever created, MinecraftClient#startIntegratedServer, MinecraftClient#joinWorld and the dedicated server main method which we can ignore.
As long as AntiResourceReload uses the cache on both startIntegratedServer and joinWorld, no other UserCache instance will ever be created.
The MinecraftServer.USER_CACHE_FILE field is also only ever accessed from those 3 places
MinecraftServer.USER_CACHE_FILE is also the only mention of usercache as a string, so the file is never written to in any other way in Minecraft.
There is 3 occurances of UserCache#save, two in UserCache itself which are fine, one in MinecraftDedicatedServer#setupServer which ARR won't be loaded on.

Copy link
Member

@tildejustin tildejustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tildejustin tildejustin merged commit bcfaf33 into Minecraft-Java-Edition-Speedrunning:1.16.1 Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants