Add system property to disable language loading from the (outdated) website when developing
This commit is contained in:
@@ -39,6 +39,9 @@ public class LocalizedResourcePack implements IResourcePack {
|
|||||||
if(availableLanguages.containsKey(langcode)) return true;
|
if(availableLanguages.containsKey(langcode)) return true;
|
||||||
if(!websiteAvailable) return false;
|
if(!websiteAvailable) return false;
|
||||||
try {
|
try {
|
||||||
|
if (Boolean.parseBoolean(System.getProperty("replaymod.offline", "false"))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
String lang = ReplayMod.apiClient.getTranslation(langcode);
|
String lang = ReplayMod.apiClient.getTranslation(langcode);
|
||||||
String prop = StringEscapeUtils.unescapeHtml4(lang);
|
String prop = StringEscapeUtils.unescapeHtml4(lang);
|
||||||
availableLanguages.put(langcode, prop);
|
availableLanguages.put(langcode, prop);
|
||||||
|
|||||||
Reference in New Issue
Block a user