diff options
author | Spottedleaf <[email protected]> | 2024-07-11 08:57:31 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-07-11 08:57:31 -0700 |
commit | f250ec0a2ef7c5833084c6ee53281cb33d4f17c9 (patch) | |
tree | 3feb0c7193c0f5e26de6eee0c7e44347582deb38 | |
parent | a594d182e49e6f5a788075243bbff97f86b1edd7 (diff) | |
download | Paper-f250ec0a2ef7c5833084c6ee53281cb33d4f17c9.tar.gz Paper-f250ec0a2ef7c5833084c6ee53281cb33d4f17c9.zip |
Increment ChunkHolderManager current tick
This is an oversight from copying from Folia. The current tick
should be incremented so that incremental autosave can properly
occur.
-rw-r--r-- | patches/server/0991-Chunk-System-Starlight-from-Moonrise.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patches/server/0991-Chunk-System-Starlight-from-Moonrise.patch b/patches/server/0991-Chunk-System-Starlight-from-Moonrise.patch index 0ee26109b5..06bbfbfbce 100644 --- a/patches/server/0991-Chunk-System-Starlight-from-Moonrise.patch +++ b/patches/server/0991-Chunk-System-Starlight-from-Moonrise.patch @@ -8714,10 +8714,10 @@ index 0000000000000000000000000000000000000000..7eafc5b7cba23d8dec92ecc1050afe3f \ No newline at end of file diff --git a/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java new file mode 100644 -index 0000000000000000000000000000000000000000..3d902f382977a194e09986419391c3ca1568885c +index 0000000000000000000000000000000000000000..1030e1b059f7ccdedd9c00527c3dd20c9cb81f42 --- /dev/null +++ b/src/main/java/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java -@@ -0,0 +1,1425 @@ +@@ -0,0 +1,1427 @@ +package ca.spottedleaf.moonrise.patches.chunk_system.scheduling; + +import ca.spottedleaf.concurrentutil.executor.standard.PrioritisedExecutor; @@ -9430,6 +9430,8 @@ index 0000000000000000000000000000000000000000..3d902f382977a194e09986419391c3ca + } + + public void tick() { ++ ++this.currentTick; ++ + final int sectionShift = ((ChunkSystemServerLevel)this.world).moonrise$getRegionChunkShift(); + + final Predicate<Ticket<?>> expireNow = (final Ticket<?> ticket) -> { |