Commit f66f25ae authored by fallenstardust's avatar fallenstardust Committed by GitHub

Merge pull request #14 from purerosefallen/lflist_fs

fix expansions lflist not loaded
parents 851bf27e 3d224922
...@@ -58,12 +58,12 @@ public class LimitManager implements Closeable { ...@@ -58,12 +58,12 @@ public class LimitManager implements Closeable {
public boolean load() { public boolean load() {
File stringFile = new File(AppsSettings.get().getResourcePath(), Constants.CORE_LIMIT_PATH); File stringFile = new File(AppsSettings.get().getResourcePath(), Constants.CORE_LIMIT_PATH);
boolean rs1 = loadFile(stringFile); boolean rs1 = true;
boolean rs2 = true;
if (AppsSettings.get().isReadExpansions()) { if (AppsSettings.get().isReadExpansions()) {
File stringFile2 = new File(AppsSettings.get().getExpansionsPath(), Constants.CORE_CUSTOM_LIMIT_PATH); File stringFile2 = new File(AppsSettings.get().getExpansionsPath(), Constants.CORE_LIMIT_PATH);
rs2 = loadFile(stringFile2); rs1 = loadFile(stringFile2);
} }
boolean rs2 = loadFile(stringFile);
return rs1 && rs2; return rs1 && rs2;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment