Skip to content

Commit

Permalink
Fix block ID mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Sep 8, 2024
1 parent 3772087 commit 3c3caf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class BlockMaterialMapping {
public static Object2IntMap<BlockState> createBlockStateIdMap(Int2ObjectLinkedOpenHashMap<List<BlockEntry>> blockPropertiesMap, Int2ObjectLinkedOpenHashMap<List<TagEntry>> tagPropertiesMap) {
Object2IntMap<BlockState> blockStateIds = new Object2IntLinkedOpenHashMap<>();

blockStateIds.defaultReturnValue(-1);
blockPropertiesMap.forEach((intId, entries) -> {
for (BlockEntry entry : entries) {
addBlockStates(entry, blockStateIds, intId);
Expand Down

0 comments on commit 3c3caf3

Please sign in to comment.