Paper/CraftBukkit-Patches/0059-Fix-some-chunks-not-being-sent-to-the-client.patch

31 lines
1.3 KiB
Diff
Raw Normal View History

2014-04-24 08:27:12 +02:00
From 5121ec7814ce666e9acb92aaf65013265054396a Mon Sep 17 00:00:00 2001
2014-04-12 06:18:37 +02:00
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
2014-04-24 08:27:12 +02:00
index d0c00db..874a089 100644
2014-04-12 06:18:37 +02:00
--- a/src/main/java/net/minecraft/server/Chunk.java
+++ b/src/main/java/net/minecraft/server/Chunk.java
2014-04-24 08:27:12 +02:00
@@ -925,7 +925,15 @@ public class Chunk {
2014-04-12 06:18:37 +02:00
}
public boolean k() {
- return this.m && 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
}
public ChunkCoordIntPair l() {
--
2014-04-19 01:15:23 +02:00
1.9.1
2014-04-12 06:18:37 +02:00