Distribute controller operations across multiple drawers #100
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.
With this pull request, the drawer controller can now distribute item operations across several drawers. When inserting, items will automatically spread to drawers with available space. When retrieving, items can be pulled from multiple drawers simultaneously. In contrast, the old behavior only allowed inserting into or extracting from one drawer slot at a time. This new behavior is toggleable via a checkbox in the drawer controller formspec (off by default).
Drawers themselves have not been changed, only the drawer controller has updated behavior.
Closes #99.
Examples
Note: my default stack size is set to
150.Requesting items
Each drawer has 5
default:dirt.The Luacontroller requests 15
default:dirt.The drawers are empty and I now have 15
default:dirt. Mission successful.Inserting items
Each drawer has 4,750
default:wood, 50 below their maximum capacity.I insert 150
default:woodinto the drawer controller.Each drawer is now completely full, with 4800
default:wood. Mission successful.