ProbeJS icon indicating copy to clipboard operation
ProbeJS copied to clipboard

Dumping loaded classes are not working

Open pietro-lopes opened this issue 8 months ago • 0 comments

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>

https://github.com/Prunoideae/ProbeJS/blob/008b38b716ad53beb4989eab6df7aa5949815750/src/main/java/moe/wolfgirl/probejs/docs/LoadClass.java#L87

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

pietro-lopes avatar May 09 '25 10:05 pietro-lopes