Readd chunk priority patch, including many chunk system fixes from tuinity (#6488)

This commit is contained in:
Spottedleaf
2021-08-25 19:16:27 -07:00
parent 7a51a16318
commit 4355a3ac96
20 changed files with 1890 additions and 119 deletions

View File

@@ -3227,9 +3227,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ try {
+ if (onLoad != null) {
+ chunkMap.callbackExecutor.execute(() -> {
+ onLoad.accept(either == null ? null : either.left().orElse(null)); // indicate failure to the callback.
+ });
+ onLoad.accept(either == null ? null : either.left().orElse(null)); // indicate failure to the callback.
+ }
+ } catch (Throwable thr) {
+ if (thr instanceof ThreadDeath) {