Skip to content

Commit

Permalink
revert: fix: use standard codec for serializer
Browse files Browse the repository at this point in the history
An oversight that makes block state saving fails.

This reverts commit 636ed96.
  • Loading branch information
ishland committed Aug 14, 2023
1 parent 636ed96 commit 9a651f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ private static void writeBlockStates(NbtWriter writer, PalettedContainer<BlockSt
writer.putRegistry(STRING_NAME, Registries.BLOCK, paletteEntry.getBlock());
if (!paletteEntry.getEntries().isEmpty()) {
// TODO: optimize this
writer.putElement(STRING_PROPERTIES, BlockState.CODEC
writer.putElement(STRING_PROPERTIES, ((IState<BlockState>) paletteEntry).getCodec().codec()
.encodeStart(NbtOps.INSTANCE, paletteEntry)
.getOrThrow(false, LOGGER::error));
}
Expand Down

0 comments on commit 9a651f2

Please sign in to comment.