-
Notifications
You must be signed in to change notification settings - Fork 182
Merge ServerChunk.updateBlockXYZ functions #2370
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
base: master
Are you sure you want to change the base?
Conversation
|
if ur adding flags, we should have them as a one optional argument at the end of the function |
That isn't the standard for zig, this isn't c. |
|
standard or not, having to specify 2 non-optional enums as the first 2 arguments of a function just makes it annoying |
|
I agree that this is ugly as hell. |
this 🙏 |
|
Aight, before I actually start thinking, I wanted to link this issue #1342 for sake of information propagation. |
Maybe, but here you would end up with 6 smaller ones (if we added the |
|
I think we should keep generation and regular update functions separate. |
|
Also, at least for the non-generation version, these functions should probably also be refactored to use the BlockPos instead of world-scale relative positions. |
Removes some redundant code and should make it easier to add different update modes/conditions in the future. (eg.
mergeOrReplaceto prevent branches from fully replacing leaves)