Jump to content

Recommended Posts

Posted

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?

Posted
4 hours ago, diesieben07 said:

Why? Single Player works just like a server, so your client code will have to include the server parts regardless.

I'd like the mod to be exclusively used on my server, and so I need to protect the source code of the server logic from being copied.

Posted
 
 
 
11 hours ago, diesieben07 said:

Why? Single Player works just like a server, so your client code will have to include the server parts regardless.

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.