Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 6318823

Browse files
committed
fix
1 parent c9a19f3 commit 6318823

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/lins/mmmjjkx/rykenslimefuncustomizer/bulit_in/JavaScriptEval.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public JavaScriptEval(@NotNull File js, ProjectAddon addon) {
4444

4545
contextInit();
4646

47-
this.addon = addon;
48-
4947
addon.getScriptEvals().add(this);
5048
}
5149

@@ -130,10 +128,10 @@ public Object evalFunction(String funName, Object... args) {
130128
} catch (IllegalStateException e) {
131129
String message = e.getMessage();
132130
if (!message.contains("Multi threaded access")) {
133-
ExceptionHandler.handleError("An error occcured while executing script file "+ getFile().getName() + "of addon" + addon.getAddonName(), e);
131+
ExceptionHandler.handleError("An error occcured while executing script file "+ getFile().getName() + "of addon" + getAddon().getAddonName(), e);
134132
}
135133
} catch (Throwable e) {
136-
ExceptionHandler.handleError("An error occcured while executing script file "+ getFile().getName() + "of addon" + addon.getAddonName(), e);
134+
ExceptionHandler.handleError("An error occcured while executing script file "+ getFile().getName() + "of addon" + getAddon().getAddonName(), e);
137135
}
138136

139137
return null;

0 commit comments

Comments
 (0)