mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 13:51:23 +01:00
Fix logic issue with no save proto chunks patch
Should be returning true as a no-op "yes it was saved" rather than false as a "there was an issue saving"
This commit is contained in:
parent
ee7b1a66d0
commit
13313f9bb6
@ -8,14 +8,14 @@ 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.
|
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
|
diff --git a/src/main/java/net/minecraft/server/PlayerChunkMap.java b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||||
index c7bc4cc363..2244d65ee6 100644
|
index c7bc4cc36..1cf516192 100644
|
||||||
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
--- a/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||||
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
+++ b/src/main/java/net/minecraft/server/PlayerChunkMap.java
|
||||||
@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean saveChunk(IChunkAccess ichunkaccess, boolean save) {
|
public boolean saveChunk(IChunkAccess ichunkaccess, boolean save) {
|
||||||
+ if (ichunkaccess.getChunkStatus().getType() == ChunkStatus.Type.PROTOCHUNK) { return false; } // Paper - don't save proto chunks
|
+ if (ichunkaccess.getChunkStatus().getType() == ChunkStatus.Type.PROTOCHUNK) { return true; } // Paper - don't save proto chunks
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
this.n.a(ichunkaccess.getPos());
|
this.n.a(ichunkaccess.getPos());
|
||||||
if (!save) { // CraftBukkit
|
if (!save) { // CraftBukkit
|
||||||
|
Loading…
Reference in New Issue
Block a user