Include entry when logging exceptions from block mappings

This commit is contained in:
davchoo 2023-01-31 23:34:28 -05:00
parent cbe7256125
commit 7bc0bde379
No known key found for this signature in database
GPG key ID: 501B6F4FD961CF9A

View file

@ -97,8 +97,9 @@ public class MappingsReader_v1 extends MappingsReader {
String identifier = Identifier.formalize(entry.getKey());
CustomBlockMapping customBlockMapping = this.readBlockMappingEntry(identifier, entry.getValue());
consumer.accept(identifier, customBlockMapping);
} catch (InvalidCustomMappingsFileException e) {
GeyserImpl.getInstance().getLogger().error("Error in registering blocks for custom mapping file: " + file.toString(), e);
} catch (Exception e) {
GeyserImpl.getInstance().getLogger().error("Error in registering blocks for custom mapping file: " + file.toString());
GeyserImpl.getInstance().getLogger().error("due to entry: " + entry, e);
}
}
});