You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request] Separate API classes for CLIENT & DEDICATED_SERVER instances maybe? #5
Currently, I tried using API with plugin on Arclight-core server (1.20.1 forge). It gives an error like Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER
I have no suggestions about implementation because I'm no expert at Forge stuff, but it would be useful to be able to use the API
Activity
txnitxnichopper commentedon Jan 7, 2025
Please include crash logs. However, if it's not crashing on Forge, it's likely a difference with Arclight.
yuompioka commentedon Jan 7, 2025
This time with another class. I mean, would there be no problem if there's no client-only staff imports in API?
txnitxnichopper commentedon Jan 7, 2025
It's not a problem in Forge. This is Arclight doing unsafe reflection.
yuompioka commentedon Jan 7, 2025
ok thx for responding, I tried changing the API class myself and it's working now. that might be wrong approach, but at least functioning