Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
worldedit = "7.4.4"
worldedit = "7.4.6"
crankcase = "0.1.0"

# Minimum versions we apply to make dependencies support newer Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,15 +559,11 @@ public PlayerMoveListener getPlayerMoveListener() {

private final LazyReference<Boolean> folia = LazyReference.from(() -> {
try {
// Folia is Paper-based, so this is a good first check.
if (PaperLib.isPaper()) {
return ServerBuildInfo.buildInfo().isBrandCompatible(net.kyori.adventure.key.Key.key("papermc", "folia"));
}
return getWorldEdit().isFolia(); // Delegate check to WorldEdit
} catch (Throwable t) {
// Ignore, this likely means an outdated version.
LOGGER.warn("Failed to check if server is running Folia", t);
}

return false;
});

Expand Down