aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0063-Add-exception-reporting-event.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2024-06-19 10:29:03 -0700
committerSpottedleaf <[email protected]>2024-06-19 10:29:03 -0700
commit38428c0d6cf9aeea31fffe8f63b8a92c982c8a4f (patch)
tree2164311ca8ff8f4587c7ef1d34421305ac47f023 /patches/server/0063-Add-exception-reporting-event.patch
parentc0268ca86eeb5ca767e5e2860aa2d936e5e7fc4f (diff)
downloadPaper-38428c0d6cf9aeea31fffe8f63b8a92c982c8a4f.tar.gz
Paper-38428c0d6cf9aeea31fffe8f63b8a92c982c8a4f.zip
Cleanup MCUtils patch for chunk system
Remove utilities that are unused, as well as replacing the full chunk map with a concurrentutil implementation. Additionally, fix the addition/removal of chunks to/from the full chunk map so that getChunkIfLoaded correctly returns a non-null chunk when calling the load or unload events.
Diffstat (limited to 'patches/server/0063-Add-exception-reporting-event.patch')
-rw-r--r--patches/server/0063-Add-exception-reporting-event.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/0063-Add-exception-reporting-event.patch b/patches/server/0063-Add-exception-reporting-event.patch
index d4df43a405..83206d2117 100644
--- a/patches/server/0063-Add-exception-reporting-event.patch
+++ b/patches/server/0063-Add-exception-reporting-event.patch
@@ -123,10 +123,10 @@ index 6a80479554f0c860a8dd6baa1a6506858fca83e3..6324689f52363f19501143c1649f0885
}
diff --git a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
-index 329f2210b73a75fc91a5ba06a1ed7f66c5aa2680..3df1ad6a4804832f4edb79a8c8fc60909a1aaa24 100644
+index 7bfe757b605f4e5a16b28214ac3b497e738b45b5..fb953b2172c322e8abf5aa50060adbc00fe92832 100644
--- a/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
+++ b/src/main/java/net/minecraft/world/level/chunk/LevelChunk.java
-@@ -565,8 +565,13 @@ public class LevelChunk extends ChunkAccess {
+@@ -466,8 +466,13 @@ public class LevelChunk extends ChunkAccess {
BlockState iblockdata = this.getBlockState(blockposition);
if (!iblockdata.hasBlockEntity()) {
@@ -142,7 +142,7 @@ index 329f2210b73a75fc91a5ba06a1ed7f66c5aa2680..3df1ad6a4804832f4edb79a8c8fc6090
} else {
BlockState iblockdata1 = blockEntity.getBlockState();
-@@ -1076,6 +1081,7 @@ public class LevelChunk extends ChunkAccess {
+@@ -951,6 +956,7 @@ public class LevelChunk extends ChunkAccess {
// Paper start - Prevent block entity and entity crashes
final String msg = String.format("BlockEntity threw exception at %s:%s,%s,%s", LevelChunk.this.getLevel().getWorld().getName(), this.getPos().getX(), this.getPos().getY(), this.getPos().getZ());
net.minecraft.server.MinecraftServer.LOGGER.error(msg, throwable);