Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World Template Fixes #4004

Closed
wants to merge 10 commits into from
Closed

World Template Fixes #4004

wants to merge 10 commits into from

Conversation

gabizou
Copy link
Member

@gabizou gabizou commented May 6, 2024

Sponge | SpongeAPI

Zidane and others added 10 commits May 5, 2024 19:24
Did you miss me?

Signed-off-by: Chris Sanders <[email protected]>
Devs need to provide the WorldType key in the template always.

Signed-off-by: Chris Sanders <[email protected]>
Fixes client saves accidentally declaring as hardcore allowed.

Signed-off-by: Chris Sanders <[email protected]>
It makes far better sense to send back an exception instead of just returning a null. As the plugin is definitely in an illegal state and somehow got this data.

Signed-off-by: Chris Sanders <[email protected]>
On the SpongeVanilla client, it is full intentional for client saves to be entered and exited. Upon enter, the Vanilla client bootstraps the server and we load in server-level registries and register them. On a dedicated server, this process occurs once. However, it repeats on the client. When it does, the code rightfully crashes. This commit is a very dirty temp fix for this problem by allowing certain registries to bypass the freeze and replace the instance. The Vanilla registry system handled this challenge via the RegistryLayer system. A long term fix would be to change the Sponge registry implementation to sit on top of Mojang's work.

Signed-off-by: Chris Sanders <[email protected]>
Signed-off-by: Chris Sanders <[email protected]>
@gabizou gabizou changed the base branch from api-10 to api-11 May 6, 2024 03:01
@gabizou gabizou closed this May 7, 2024
@gabizou gabizou deleted the fix/world-type-template branch May 7, 2024 05:48
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