diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/ListPalette.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/ListPalette.java index e00a0e47..e82b33ec 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/ListPalette.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/ListPalette.java @@ -10,7 +10,7 @@ public class ListPalette implements Palette { private final int maxId; private final int[] data; - private int nextId = 1; + private int nextId = 0; public ListPalette(int bitsPerEntry) { this.maxId = (1 << bitsPerEntry) - 1; diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/MapPalette.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/MapPalette.java index b98283bf..92a43bdc 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/MapPalette.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/chunk/palette/MapPalette.java @@ -13,13 +13,12 @@ public class MapPalette implements Palette { private final int[] idToState; private final IntObjectMap stateToId = new IntObjectHashMap<>(); - private int nextId = 1; + private int nextId = 0; public MapPalette(int bitsPerEntry) { this.maxId = (1 << bitsPerEntry) - 1; this.idToState = new int[this.maxId + 1]; - this.stateToId.put(0, (Integer) 0); } @Override