Skip to content

Commit

Permalink
fix emptying carried containers
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 15, 2024
1 parent 4c7043e commit 3e373ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Template for new versions:
- `confirm`: properly detect clicks on the remove zone button even when the unit selection screen is also open (e.g. the vanilla assign animal to pasture panel)
- `quickfort`: if a blueprint specifies an up/down stair, but the tile the blueprint is applied to cannot make an up stair (e.g. it has already been dug out), still designate a down stair if possible
- `suspendmanager`: correctly handle building collisions with smoothing designations when the building is on the edge of the map
- `empty-bin`: now correctly sends ammunition in carried quivers to the tile underneath the unit instead of teleporting them to an invalid (or possibly just far away) location

## Misc Improvements
- `gui/control-panel`: reduce frequency for `warn-stranded` check to once every 2 days
Expand Down
2 changes: 1 addition & 1 deletion empty-bin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if #items > 0 then
print('Emptying ' .. dfhack.items.getDescription(bin, 0))
for _, item in pairs(items) do
print(' ' .. dfhack.items.getDescription(item, 0))
dfhack.items.moveToGround(item, bin.pos)
dfhack.items.moveToGround(item, xyz2pos(dfhack.items.getPosition(bin)))
end
else
print('No contained items')
Expand Down

0 comments on commit 3e373ef

Please sign in to comment.