Skip to content

Commit

Permalink
Convert to unsigned int as a workaround for loading modded data
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebuilder2020 committed Feb 14, 2025
1 parent ab3cd42 commit 9e9e0c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public Clipboard read(WorldData data) throws IOException {
blocks[index] = blockConversionMap.get(blocks[index]);
}

BaseBlock block = new BaseBlock(Short.toUnsignedInt(blocks[index]), blockData[index]);
BaseBlock block = new BaseBlock(Short.toUnsignedInt(blocks[index]), Byte.toUnsignedInt(blockData[index]));

if (tileEntitiesMap.containsKey(pt)) {
BiPredicate<CompoundTag, String[]> isItem = (itemTag, idPtr) -> {
Expand Down

0 comments on commit 9e9e0c1

Please sign in to comment.