From fbd462a6eef5588cf90c34726801673aea129dd0 Mon Sep 17 00:00:00 2001 From: TheMode Date: Thu, 3 Feb 2022 05:34:32 +0100 Subject: [PATCH] Temporarily remove palette optimization Signed-off-by: TheMode --- .../minestom/server/instance/palette/AdaptivePalette.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/net/minestom/server/instance/palette/AdaptivePalette.java b/src/main/java/net/minestom/server/instance/palette/AdaptivePalette.java index 4a4796155..290d714d5 100644 --- a/src/main/java/net/minestom/server/instance/palette/AdaptivePalette.java +++ b/src/main/java/net/minestom/server/instance/palette/AdaptivePalette.java @@ -125,14 +125,8 @@ final class AdaptivePalette implements Palette { if (count == 0) { currentPalette = new FilledPalette(dimension, 0); this.palette = currentPalette; - } else if (count == maxSize()) { - // Palette is full - final var values = flexiblePalette.paletteToValueList; - if (values.size() > 0) { - currentPalette = new FilledPalette(dimension, values.getInt(1)); - this.palette = currentPalette; - } } + // TODO optimize the case where the palette is filled with a single value } return currentPalette; }