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

Dont charge world startup #10

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Conversation

Euphillya
Copy link
Contributor

On the Paper API, we can clearly see that the creation of the world should not be put at the start of the server. In addition to that, it breaks the World Generators which load just after the plugin.

On the Paper API, we can clearly see that the creation of the world should not be put at the start of the server. In addition to that, it breaks the World Generators which load just after the plugin.
@Euphillya
Copy link
Contributor Author

I'm pretty sure due to the nature of how Folia works, it's supposed to be done on STARTUP. This plugin is basically a workaround for some of Folia's limitations.

On my Skyblock plugin where I use the same methods, it works great, especially if I want it to work on Paper too.

Copy link
Member

@HSGamer HSGamer left a comment

Choose a reason for hiding this comment

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

You missed the case when you create a brand new world.
We would need to call prepareLevels and the WorldLoadEvent ourselves. Otherwise, it would hang and cause server crash. The original goal is to let Folia call them on its own so that we can be sure everything works correctly.
Simply changing the load order is not enough.

@HSGamer HSGamer self-requested a review October 22, 2024 10:38
@HSGamer HSGamer merged commit f313f34 into Folia-Inquisitors:master Oct 22, 2024
1 check passed
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