mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 23:34:50 +01:00
(fix) Add friendly error message for not having resources
This commit is contained in:
@@ -81,6 +81,8 @@ public class ResourceLoader {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
loadFromResource(resourceDefinition, type, map);
|
loadFromResource(resourceDefinition, type, map);
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
LunarCore.getLogger().error("Resource file not found: {}.", Arrays.toString(type.name()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LunarCore.getLogger().error("Error loading resource file: " + Arrays.toString(type.name()), e);
|
LunarCore.getLogger().error("Error loading resource file: " + Arrays.toString(type.name()), e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user