Update Moonrise to 1.21.6-pre2

See b312be2921
This commit is contained in:
Spottedleaf
2025-06-03 12:50:46 -07:00
parent 52880cec74
commit 4fa21c21fc
5 changed files with 94 additions and 238 deletions

View File

@@ -1,6 +1,6 @@
--- /dev/null
+++ b/ca/spottedleaf/moonrise/paper/PaperHooks.java
@@ -1,0 +_,249 @@
@@ -1,0 +_,250 @@
+package ca.spottedleaf.moonrise.paper;
+
+import ca.spottedleaf.moonrise.common.PlatformHooks;
@@ -33,6 +33,8 @@
+
+public final class PaperHooks extends BaseChunkSystemHooks implements PlatformHooks {
+
+ private static final org.slf4j.Logger LOGGER = com.mojang.logging.LogUtils.getLogger();
+
+ @Override
+ public String getBrand() {
+ return "Paper";
@@ -239,10 +241,9 @@
+
+ @Override
+ public void postLoadProtoChunk(final ServerLevel world, final ProtoChunk chunk) {
+ net.minecraft.world.level.chunk.status.ChunkStatusTasks.postLoadProtoChunk(
+ world,
+ net.minecraft.world.level.storage.TagValueInput.create(net.minecraft.util.ProblemReporter.DISCARDING, world.registryAccess(), chunk.getEntities())
+ );
+ try (final net.minecraft.util.ProblemReporter.ScopedCollector scopedCollector = new net.minecraft.util.ProblemReporter.ScopedCollector(chunk.problemPath(), LOGGER)) {
+ net.minecraft.world.level.chunk.status.ChunkStatusTasks.postLoadProtoChunk(world, net.minecraft.world.level.storage.TagValueInput.create(scopedCollector, world.registryAccess(), chunk.getEntities()));
+ }
+ }
+
+ @Override