ProbeJS

ProbeJS

3M Downloads

Dumping loaded classes are not working

pietro-lopes opened this issue ยท 0 comments

commented

Calling ContextFactory#enter() here will only return a new instance of Context because you are calling this from the ProbeJSDumpThread and that function calls a ThreadLocal<Context>

return ((KubeJSContext) scriptDump.manager.contextFactory.enter()).getJavaClassCache()

You might need to delegate that call to the appropriated thread like using
Minecraft.getInstance().submit(...) or
ServerLifecycleHooks.getCurrentServer().submit(...)