We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddddffd commit 1522c2dCopy full SHA for 1522c2d
1 file changed
empty-bin.lua
@@ -3,15 +3,6 @@
3
-- https://gist.github.com/stonetoad/11129025
4
-- http://dwarffortresswiki.org/index.php/DF2014_Talk:Bin
5
6
---[====[
7
-
8
-empty-bin
9
-=========
10
11
-Empties the contents of the selected bin onto the floor.
12
13
-]====]
14
15
local function moveItem(item, to_pos)
16
print(' ' .. dfhack.items.getDescription(item, 0))
17
dfhack.items.moveToGround(item, to_pos)
@@ -48,6 +39,7 @@ if stockpile then
48
39
emptyContainer(container)
49
40
end
50
41
elseif selectedItem then
42
+ moveItem(selectedItem, xyz2pos(dfhack.items.getPosition(selectedItem)))
51
43
emptyContainer(selectedItem)
52
44
elseif selectedBuilding then
53
45
if not df.building_actual:is_instance(selectedBuilding) then
0 commit comments