Posted February 15, 201510 yr Hi! Im trying to debug my mod on a server and it keeps giving me this error: (It wouldnt let me insert code) "Attempted to load class net/minecraft/client/multiplayer/WorldClient for invalid side SERVER" It tells me that the error was caused by a FML class but its probably one of my classes. Is there somewhere else I should look to find the error? Thanks for the help!
February 15, 201510 yr Yes it's one of your classes to blame. This link explains it a bit more. You need to cleanly separate your code into server side and client side using @SidedProxy. http://greyminecraftcoder.blogspot.com.au/2013/11/how-forge-starts-up-your-code.html (The section on Proxies) -TGG
February 15, 201510 yr Author I know how the proxies work but Im not really sure what should be put on the different sides.
February 15, 201510 yr Well, anything that references client-only classes should be on the client only part of the proxy. This would be things having to do with textures, rendering, etc. In your case the code that is causing the problem (whatever is referncing WorldClient) will have to either go in the client-only part of your proxy, or be modified so that it uses World and not WorldClient. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.