-
-
Notifications
You must be signed in to change notification settings - Fork 235
Refactor block dropping when breaking block with a tool #3533
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
Merged
IntegratedQuantum
merged 19 commits into
PixelGuys:master
from
DellieDelta:with-item-blockdrop-refactor
Aug 26, 2026
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d52ef2b
Remove dropInside function
DellieDelta 3fde912
Remove dropOutside function
DellieDelta 83a91f8
Remove drop function from BlockDropLocation
DellieDelta 49910c7
Move collide check upwards to separate drop cases
DellieDelta d9d9287
Extract dropFromPosition function, and use it
DellieDelta b03a9a7
Extract dropsFromPosition function for Block
DellieDelta 4d0ad8e
Rename dropFromPosition functions to tryDropWithItem
DellieDelta 3934a2e
Move BlockDropLocation to blocks.zig
DellieDelta f94e4bf
Introduce DropContext struct and use it
DellieDelta fd4405f
Move BlockDropLocation into BlockDrop as BlockDrop.Location
DellieDelta 1e0fabd
Rename DropContext struct to just Context
DellieDelta f1ec154
Make Context private
DellieDelta 3902417
Rename tryDropWithItem function to tryDropWhenBrokenWithItem
DellieDelta c54395f
Last fixes, and run formatter
DellieDelta dbff7b4
Remove unneeded `vec` reference
DellieDelta ef61077
Use a `BlockDrop.Context` with a `drop()` function
DellieDelta 5e19a4a
Do item check earlier
DellieDelta ef5b4ef
Rename drop function, allow null items to still drop, and check item …
DellieDelta b062df6
Pass `Item` straight to drop function without null check
DellieDelta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.