diff --git a/src/main/java/net/minestom/server/instance/palette/PaletteImpl.java b/src/main/java/net/minestom/server/instance/palette/PaletteImpl.java index fdbc14e86..88be64f50 100644 --- a/src/main/java/net/minestom/server/instance/palette/PaletteImpl.java +++ b/src/main/java/net/minestom/server/instance/palette/PaletteImpl.java @@ -265,7 +265,7 @@ final class PaletteImpl implements Palette, Cloneable { final int newValue = function.apply(x, y, z, value); final int index = count.getPlain(); count.setPlain(index + 1); - cache[index] = getPaletteIndex(newValue); + cache[index] = newValue != value ? getPaletteIndex(newValue) : value; }); // Set values to final array count.setPlain(0);