Paper/Spigot-Server-Patches/0160-MC-80966-Always-send-chunk-sections.patch
Aikar 3faaaab75d Optimize isInvalidYLocation, getType and getBlockData
Some pretty micro optimizations, but this is the hottest method in the server....

This will drastically reduce number of operations to perform getType

the 2 previous patches was squashed into 1
2016-06-22 22:43:02 -04:00

25 Zeilen
832 B
Diff

From 506ce6cd06c9470e86bfb6daada661c52da34c39 Mon Sep 17 00:00:00 2001
From: Zach Brown <zach.brown@destroystokyo.com>
Date: Sat, 11 Jun 2016 14:59:15 -0500
Subject: [PATCH] MC-80966 - Always send chunk sections
diff --git a/src/main/java/net/minecraft/server/ChunkSection.java b/src/main/java/net/minecraft/server/ChunkSection.java
index a12fa23..27d0f99 100644
--- a/src/main/java/net/minecraft/server/ChunkSection.java
+++ b/src/main/java/net/minecraft/server/ChunkSection.java
@@ -64,7 +64,9 @@ public class ChunkSection {
}
public boolean a() {
- return this.nonEmptyBlockCount == 0;
+ // Paper - MC-80966
+ // Even if there are no blocks, there may be other information associated with the chunk, always send it.
+ return false;
}
public boolean shouldTick() {
--
2.9.0