Skip to content

Basic Folia Support#2259

Open
Euphillya wants to merge 5 commits intoEngineHub:version/7.0.xfrom
Euphillya:features/folia-support
Open

Basic Folia Support#2259
Euphillya wants to merge 5 commits intoEngineHub:version/7.0.xfrom
Euphillya:features/folia-support

Conversation

@Euphillya
Copy link

@Euphillya Euphillya commented Mar 5, 2026

Following the basic Folia support for WorldEdit, this PR adds basic Folia support.
Some testing still needs to be done.

@Euphillya Euphillya marked this pull request as ready for review March 5, 2026 22:38
Copy link
Member

@me4502 me4502 left a comment

Choose a reason for hiding this comment

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

Thanks for this. It appears to mostly follow along with the same goals from the WorldEdit Folia support.

I've left a few comments on some parts that I feel would be worth cleaning up

@Euphillya Euphillya requested a review from me4502 March 7, 2026 09:09
@Euphillya
Copy link
Author

That should be good, I also took the liberty of removing duplicates for event.getFrom() and event.getTo() in the WorldGuardVehicleListener.

vehicle.teleport(override.clone());
Location vehicleTeleportLocation = override.clone();
if (getPlugin().isFolia()) {
PaperLib.teleportAsync(vehicle, vehicleTeleportLocation);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think there is a reason to use PaperLib only for folia. Imo we could always use PaperLib which provides fallback stuff for spigot.

Copy link
Author

Choose a reason for hiding this comment

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

The potential problem would be that there could be a desynchronization between several teleportations on the Paper or Bukkit servers, which are currently a synchronous call
An issue has been created for WorldEdit regarding an API; if we know it won't cause any problems, I can merge using PaperLib for Bukkit like Folia.

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.

3 participants