File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
src/main/java/zzzank/probejs Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 4
4
import dev .latvian .mods .rhino .NativeJavaClass ;
5
5
import lombok .val ;
6
6
import zzzank .probejs .ProbeJS ;
7
+ import zzzank .probejs .features .kesseractjs .KessJSState ;
7
8
import zzzank .probejs .lang .typescript .ScriptDump ;
8
- import zzzank .probejs .utils .CollectUtils ;
9
9
import zzzank .probejs .utils .GameUtils ;
10
10
11
11
import java .util .HashMap ;
@@ -34,7 +34,11 @@ public void read() {
34
34
return ;
35
35
}
36
36
val context = pack .context ;
37
- val scope = pack .scope ;
37
+ var scope = pack .scope ;
38
+ if (KessJSState .MOD ) {
39
+ scope = scope .getParentScope ();
40
+ }
41
+
38
42
for (val idObj : scope .getIds ()) {
39
43
if (!(idObj instanceof String id )) {
40
44
continue ;
Original file line number Diff line number Diff line change
1
+ package zzzank .probejs .features .kesseractjs ;
2
+
3
+ import me .shedaniel .architectury .platform .Platform ;
4
+
5
+ /**
6
+ * @author ZZZank
7
+ */
8
+ public interface KessJSState {
9
+
10
+ String ID = "kesseractjs" ;
11
+ boolean MOD = Platform .isModLoaded (ID );
12
+ }
You can’t perform that action at this time.
0 commit comments