Skip to content

Make autocrafter take items from last stack first - #221

Merged
OgelGames merged 2 commits into
masterfrom
retfarcotua
Aug 15, 2026
Merged

Make autocrafter take items from last stack first#221
OgelGames merged 2 commits into
masterfrom
retfarcotua

Conversation

@OgelGames

Copy link
Copy Markdown
Contributor

The autocrafter previously used InvRef:remove_item() to take items from it's inventory, which took from the last matching stack first; this PR restores that behavior.

As an added benefit, this change also makes ingredient consumption deterministic, since the code no longer uses pairs for iterating.

@OgelGames OgelGames added the bugfix fixes a bug label Aug 12, 2026
Comment thread autocrafter.lua Outdated
Comment thread autocrafter.lua Outdated
@OgelGames
OgelGames merged commit 260d502 into master Aug 15, 2026
2 checks passed
@OgelGames
OgelGames deleted the retfarcotua branch August 15, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants