Skip to content
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

Run the client and server in separate instances of the mods #245

Open
SoniEx2 opened this issue Jan 14, 2017 · 1 comment
Open

Run the client and server in separate instances of the mods #245

SoniEx2 opened this issue Jan 14, 2017 · 1 comment

Comments

@SoniEx2
Copy link
Contributor

SoniEx2 commented Jan 14, 2017

For each mod, you make one instance of the main mod class for each game environment (client or server) in the same JVM. So a local 2-player game with an internal server would have 3 instances of each mod, while a dedicated server would have 1 instance and singleplayer would have 2 instances.

This reduces pains with regards to sidedness and having to keep track of it. Mods would just be able to use environment-global instances (accessed through Environment objects) without having to worry about it.

I believe @amadornes and anyone who has ever played with implementing wireless redstone would love this.

@RX14
Copy link
Contributor

RX14 commented Jan 14, 2017

This might be something for later on, which mods can opt in to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants