-
Notifications
You must be signed in to change notification settings - Fork 40
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
WIP: Block editing #150
base: master
Are you sure you want to change the base?
WIP: Block editing #150
Conversation
.get_entities_with::<ChunkReceiver>() | ||
.get_entities_with::<PlayerIdentity>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep this as a ChunkReceiver, since you don't want to send play packets to someone in login state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There has to be a better solution that that. Also why would a player during login have a player identity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're more than welcome to find a better solution, but, player receives the PlayerIdentity component during login start packet.
Oh wait, you also add ChunkReceiver during login start? Add it when login process is completed, and keep this as is. So 'everyone' would be players that could receive chunks I suppose?
/// Reads an n-bit integer from a packed `i64`. | ||
pub fn read_nbit_i32( | ||
word: &i64, | ||
bit_size: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you state earlier that this must be 32 or less. so why not just u8?
Description
Motivation and Context
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: