Fix ghost blocks !protocolsupport

This commit is contained in:
Jesse Boyd 2019-04-16 13:47:05 +10:00
parent 629be505e2
commit e7869643d9
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -879,7 +879,7 @@ public class BukkitQueue_1_13 extends BukkitQueue_0<net.minecraft.server.v1_13_R
// BlockStates
int bitsPerEntry = MathMan.log2nlz(num_palette - 1);
if (Settings.IMP.PROTOCOL_SUPPORT_FIX) {
if (Settings.IMP.PROTOCOL_SUPPORT_FIX || num_palette != 1) {
bitsPerEntry = Math.max(bitsPerEntry, 4); // Protocol support breaks <4 bits per entry
} else {
bitsPerEntry = Math.max(bitsPerEntry, 1); // For some reason minecraft needs 4096 bits to store 0 entries