Refuse chunk generation while world maintenance forbids mantle stages

Folia maintenance used to generate chunks with the mantle stages skipped and then persist them without objects, caves or deposits. The engine now refuses the chunk with an expected-teardown session exception and warns at most every 5 seconds, so the chunk stays ungenerated. The REAL flag is set unconditionally.

Upstream: ea516b4a5
This commit is contained in:
piexel committed 2026-11-10 00:58:51 +01:00
1 parent a81a3abb9f
commit fc5c6ce0ab
9 files changed
+88 -61

No files matched your search

@@ -159,7 +159,7 @@ public final class BukkitEnginePlatformHooks implements EnginePlatformHooks {
}
@Override
public boolean shouldBypassMantleStages(Engine engine) {
public boolean shouldRefuseGeneration(Engine engine) {
if (!J.isFolia() || !engine.getWorld().hasPlatformWorld()) {
return false;
}