diff options
author | granny <[email protected]> | 2024-07-18 04:34:34 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-18 13:34:34 +0200 |
commit | 3c8a7fe1a4a7e348106795ca44529ff6d2005234 (patch) | |
tree | 8bfe191e2a4d38b2ab60d4e3d28434b745e9aa83 | |
parent | dd11ef84410f92af07f46adce198ef5078cb54b8 (diff) | |
download | Paper-3c8a7fe1a4a7e348106795ca44529ff6d2005234.tar.gz Paper-3c8a7fe1a4a7e348106795ca44529ff6d2005234.zip |
Re-add missing chunk event calls (#11104)
-rw-r--r-- | patches/server/0988-Moonrise-optimisation-patches.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/patches/server/0988-Moonrise-optimisation-patches.patch b/patches/server/0988-Moonrise-optimisation-patches.patch index 772c86ee03..b2d30b1448 100644 --- a/patches/server/0988-Moonrise-optimisation-patches.patch +++ b/patches/server/0988-Moonrise-optimisation-patches.patch @@ -13,7 +13,7 @@ Currently includes: See https://github.com/Tuinity/Moonrise diff --git a/src/main/java/ca/spottedleaf/moonrise/common/util/ChunkSystem.java b/src/main/java/ca/spottedleaf/moonrise/common/util/ChunkSystem.java -index da323a1105347d5cf4b946df10ded78a953236f2..79ea42ff287beadb997d5d805a3d5faa6f80216a 100644 +index da323a1105347d5cf4b946df10ded78a953236f2..0abba00741b39b69a7f167e5d2670f2565c9a752 100644 --- a/src/main/java/ca/spottedleaf/moonrise/common/util/ChunkSystem.java +++ b/src/main/java/ca/spottedleaf/moonrise/common/util/ChunkSystem.java @@ -1,6 +1,10 @@ @@ -239,7 +239,7 @@ index da323a1105347d5cf4b946df10ded78a953236f2..79ea42ff287beadb997d5d805a3d5faa } public static boolean hasAnyChunkHolders(final ServerLevel level) { -@@ -232,52 +79,83 @@ public final class ChunkSystem { +@@ -232,52 +79,85 @@ public final class ChunkSystem { } @@ -253,12 +253,14 @@ index da323a1105347d5cf4b946df10ded78a953236f2..79ea42ff287beadb997d5d805a3d5faa + ((ChunkSystemServerLevel)((ServerLevel)chunk.getLevel())).moonrise$getLoadedChunks().add( + ((ChunkSystemLevelChunk)chunk).moonrise$getChunkAndHolder() + ); ++ chunk.loadCallback(); } public static void onChunkNotBorder(final LevelChunk chunk, final ChunkHolder holder) { + ((ChunkSystemServerLevel)((ServerLevel)chunk.getLevel())).moonrise$getLoadedChunks().remove( + ((ChunkSystemLevelChunk)chunk).moonrise$getChunkAndHolder() + ); ++ chunk.unloadCallback(); + } + public static void onChunkPostNotBorder(final LevelChunk chunk, final ChunkHolder holder) { |