-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix occasional client-side unloading of Chunk 0,0 (#17)
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
patches/server/0064-Fix-Occasional-Client-Side-Unloading-of-Chunk-0-0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Mechoriet <kevinworm92@gmail.com> | ||
Date: Sun, 22 May 2022 23:42:48 +0200 | ||
Subject: [PATCH] Fix Occasional Client Side Unloading of Chunk 0 0 | ||
|
||
Ported from MineTick | ||
|
||
diff --git a/src/main/java/net/minecraft/server/ChunkProviderServer.java b/src/main/java/net/minecraft/server/ChunkProviderServer.java | ||
index c4dab42bdf868f73f0c3875e8adfb852b2b02e18..9d31e75170c96103cd74557323af84dfbd9964ab 100644 | ||
--- a/src/main/java/net/minecraft/server/ChunkProviderServer.java | ||
+++ b/src/main/java/net/minecraft/server/ChunkProviderServer.java | ||
@@ -38,7 +38,7 @@ public class ChunkProviderServer implements IChunkProvider { | ||
public WorldServer world; | ||
|
||
public ChunkProviderServer(WorldServer worldserver, IChunkLoader ichunkloader, IChunkProvider ichunkprovider) { | ||
- this.emptyChunk = new EmptyChunk(worldserver, 0, 0); | ||
+ this.emptyChunk = new EmptyChunk(worldserver, Integer.MIN_VALUE, Integer.MIN_VALUE); // PandaSpigot - Occasional Client Side Unloading of 0,0 chunk | ||
this.world = worldserver; | ||
this.chunkLoader = ichunkloader; | ||
this.chunkProvider = ichunkprovider; |