Skip to content

Commit

Permalink
使用实例变量而不是静态获取
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Nov 3, 2024
1 parent c0f7dc1 commit cdf2eb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void loadCacheFile() throws IOException {
} else {
try {
BtnRule btnRule = JsonUtil.getGson().fromJson(Files.readString(btnCacheFile.toPath()), BtnRule.class);
this.btnRule = new BtnRuleParsed(Main.getServer().getScriptEngine(), btnRule);
this.btnRule = new BtnRuleParsed(scriptEngine, btnRule);
} catch (Throwable ignored) {
}
}
Expand Down

0 comments on commit cdf2eb7

Please sign in to comment.