mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
rename SkinRestorer.resource to SkinRestorer.assetPath
This commit is contained in:
@@ -75,7 +75,7 @@ public final class SkinRestorer {
|
||||
Translation.reloadTranslations();
|
||||
}
|
||||
|
||||
public static String resource(String name) {
|
||||
public static String assetPath(String name) {
|
||||
return String.format("/assets/%s/%s", SkinRestorer.MOD_ID, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ public final class Translation {
|
||||
}
|
||||
|
||||
private static ImmutableMap<String, String> loadTranslationMap(String lang) {
|
||||
var json = FileUtils.readResource(SkinRestorer.resource(String.format("lang/%s.json", lang)));
|
||||
var json = FileUtils.readResource(SkinRestorer.assetPath(String.format("lang/%s.json", lang)));
|
||||
|
||||
var type = new TypeToken<Map<String, String>>() {}.getType();
|
||||
Map<String, String> map = null;
|
||||
|
||||
Reference in New Issue
Block a user