Fix mapping reading

This commit is contained in:
Eclipse 2024-12-19 12:04:27 +00:00
parent 2b9f519158
commit ff35c6e752
No known key found for this signature in database
GPG key ID: 95E6998F82EC938A

View file

@ -85,7 +85,10 @@ public class MappingsReader_v2 extends MappingsReader {
@Override
public void readBlockMappings(Path file, JsonNode mappingsRoot, BiConsumer<String, CustomBlockMapping> consumer) {
throw new RuntimeException("Unimplemented; use the v1 format of block mappings");
JsonNode blocksNode = mappingsRoot.get("blocks");
if (blocksNode != null) {
throw new RuntimeException("Unimplemented; use the v1 format of block mappings");
}
}
private void readItemDefinitionEntry(JsonNode data, String itemIdentifier, String model,