UPD: I also get a crash when trying to run a server with the mod, since the Client packet handler uses a reference to the EntityPlayerSP class, which is absent on the server side.
Somehow the SideOnly or SidedProxy do not help.
I want to have my mod's client code to be completely (or as much as possible) separate from the server part.
However, it appears to me that for SimpleImpl packet system to, work packet class should be shared between client/server sources, since the IMessageHandler requires packet class as an argument.
Is there any workaround to define packet handler on one side without exposing its code to the other?
2 replies
Important Information
By using this site, you agree to our Terms of Use.