PaperSpigot-Parent/CraftBukkit-Patches/0050-Fix-some-chunks-not-being-sent-to-the-client.patch

31 lines
1.3 KiB
Diff
Raw Normal View History

2015-05-25 14:05:40 +02:00
From 41a87da3590d7d0dcdf8a0f9ca2a97e47d8a337b Mon Sep 17 00:00:00 2001
From: Thinkofdeath <thethinkofdeath@gmail.com>
Date: Mon, 2 Dec 2013 23:42:09 +0000
Subject: [PATCH] Fix some chunks not being sent to the client
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
2015-03-22 20:50:13 +01:00
index 7e56837..5208dbc 100644
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
2015-03-22 20:50:13 +01:00
@@ -1061,7 +1061,15 @@ public class Chunk {
}
public boolean isReady() {
2014-11-28 02:17:45 +01:00
- return this.p && this.done && this.lit;
+ // Spigot Start
+ /*
+ * As of 1.7, Mojang added a check to make sure that only chunks which have been lit are sent to the client.
+ * Unfortunately this interferes with our modified chunk ticking algorithm, which will only tick chunks distant from the player on a very infrequent basis.
+ * We cannot unfortunately do this lighting stage during chunk gen as it appears to put a lot more noticeable load on the server, than when it is done at play time.
+ * For now at least we will simply send all chunks, in accordance with pre 1.7 behaviour.
+ */
+ return true;
+ // Spigot End
}
2014-11-28 02:17:45 +01:00
public ChunkCoordIntPair j() {
--
2015-05-09 22:23:26 +02:00
2.1.4