Update LegacyMapper.java

This commit is contained in:
Jesse Boyd 2019-12-19 16:58:00 +00:00
parent 5d039c0e2b
commit 2bd65f6423
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -142,10 +142,12 @@ public final class LegacyMapper {
stringToBlockMap.put(id, blockState);
}
}
if (blockState != null) {
blockArr[combinedId] = blockState.getInternalId();
blockStateToLegacyId4Data.put(blockState.getInternalId(), (Integer) combinedId);
blockStateToLegacyId4Data.putIfAbsent(blockState.getInternalBlockTypeId(), combinedId);
}
}
for (int id = 0; id < 256; id++) {
int combinedId = id << 4;
int base = blockArr[combinedId];