Skip to content

Commit

Permalink
fix: crash when compacting palette cause by always including air caus…
Browse files Browse the repository at this point in the history
…ing unexpected resize
  • Loading branch information
2No2Name committed Aug 16, 2020
1 parent b082d1d commit 202419e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void write(CompoundTag rootTag, String paletteKey, String dataKey) {
// If we aren't going to use an empty data array, start a compaction
if (dataArray == null) {
LithiumHashPalette<T> compactedPalette = new LithiumHashPalette<>(this.idList, this.paletteSize, null, this.elementDeserializer, this.elementSerializer);
compactedPalette.getIndex(this.defaultValue);

short[] array = cachedCompactionArrays.get();
((CompactingPackedIntegerArray) this.data).compact(this.palette, compactedPalette, array);
Expand Down

0 comments on commit 202419e

Please sign in to comment.