New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A sideonly issue in MBE_60 #8
Comments
Hi Herbix |
Hi Herbix |
Some client side handlers are needed, or |
Yes. The problem is that the dedicated server needs to have something registered for that message ID, even if there is no server handler. A weakness in the simple network wrapper design, I think. I reckon your approach is good, with a slight twist - what I am thinking of: I'll test it out and commit when I'm done... -TGG |
Tested it; seems to work. |
Since
MessageHandlerOnClient
uses client only classMinecraft
, it would throw aClassNotFoundException
in a dedicated server whenMessageHandlerOnClient
is loaded. ButStartupCommon
usesMessageHandlerOnClient
. So I doubt whether these codes work on dedicated servers.I would use different network registration at dedicated server and client. At client, I would use MBE60 codes:
While at a dedicated server, I would use this:
And define
MessageHandlerOnServerButHandleClientMessage
:The text was updated successfully, but these errors were encountered: