mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 15:24:44 +01:00
(fix) Add friendly error message for not having resources
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user