2019-05-14 21:54:32 +00:00
|
|
|
From e4d1232c82e9f706a4e6f3ca918109cedfeb3121 Mon Sep 17 00:00:00 2001
|
2019-04-30 01:20:24 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 22 Jul 2018 21:21:41 -0400
|
|
|
|
Subject: [PATCH] Don't save Proto Chunks
|
|
|
|
|
|
|
|
These chunks are unfinished, and waste cpu time saving these unfinished chunks.
|
|
|
|
the loadChunk method refuses to acknoledge they exists, and will restart
|
|
|
|
a new chunk generation process to begin with, so saving them serves no benefit.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
2019-05-14 21:54:32 +00:00
|
|
|
index c7bc4cc363..2244d65ee6 100644
|
2019-04-30 01:20:24 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
2019-05-14 02:20:58 +00:00
|
|
|
@@ -588,6 +588,7 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
2019-04-30 01:20:24 +00:00
|
|
|
}
|
|
|
|
|
2019-05-14 02:20:58 +00:00
|
|
|
public boolean saveChunk(IChunkAccess ichunkaccess, boolean save) {
|
|
|
|
+ if (ichunkaccess.getChunkStatus().getType() == ChunkStatus.Type.PROTOCHUNK) { return false; } // Paper - don't save proto chunks
|
2019-04-30 01:20:24 +00:00
|
|
|
// CraftBukkit end
|
|
|
|
this.n.a(ichunkaccess.getPos());
|
2019-05-14 02:20:58 +00:00
|
|
|
if (!save) { // CraftBukkit
|
2019-04-30 01:20:24 +00:00
|
|
|
--
|
|
|
|
2.21.0
|
|
|
|
|