(fix) Add friendly error message for not having resources

This commit is contained in:
KingRainbow44
2023-11-25 23:06:59 -05:00
parent e5133841e7
commit f34ea36610

View File

@@ -81,6 +81,8 @@ public class ResourceLoader {
try {
loadFromResource(resourceDefinition, type, map);
} catch (FileNotFoundException e) {
LunarCore.getLogger().error("Resource file not found: {}.", Arrays.toString(type.name()));
} catch (Exception e) {
LunarCore.getLogger().error("Error loading resource file: " + Arrays.toString(type.name()), e);
}