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

Disable local terrain generation in online mode #189

Merged
merged 4 commits into from
Jun 12, 2017
Merged

Conversation

satoshinm
Copy link
Owner

for #188 Use only terrain from server, remove local generation when online

@satoshinm
Copy link
Owner Author

Disabling local terrain generation when the client is enabled is easy enough:

screenshot-netcraft-2017-06-09t03_44_54 103z

but this breaks server.py / native client

@satoshinm
Copy link
Owner Author

Native build of client connecting to server.py, shows only blocks which the user added beyond the terrain:

screen shot 2017-06-11 at 8 49 18 pm

except for the outer edges which do show the terrain locally which I'm not sure why

@satoshinm
Copy link
Owner Author

Not ideal, but #ifdefing __EMSCRIPTEN__ to disable local terrain generation when online, when running under emscripten since it is connecting to WebSandboxMC which sends the full terrain, and enabling it when in the native build since server.py sends only a delta, is the most expedient.

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

Successfully merging this pull request may close these issues.

1 participant