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

Add server checks for block placing #53

Open
2 tasks
Unarelith opened this issue Feb 18, 2020 · 0 comments
Open
2 tasks

Add server checks for block placing #53

Unarelith opened this issue Feb 18, 2020 · 0 comments
Labels

Comments

@Unarelith
Copy link
Owner

The server should check that:

  • A placed block won't replace another one
  • Blocks can't be placed inside a player

The client-side check made to fix #32 only checks the current player and the state of the world the client has. The server should check other players and its own state of the world (which is the real one). For example if two clients try to place a block at the same time, the server should only allow the first block placement packet it receives.

Actually, the client should also check for other players but that's another issue.

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

No branches or pull requests

1 participant