Skip to content

Commit

Permalink
Update autodump.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Bumber64 authored Jul 30, 2024
1 parent b8cb6ab commit 2fa3a43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gui/autodump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,7 @@ end

function Autodump:do_dump(pos)
pos = pos or dfhack.gui.getMousePos()
if not pos then
dfhack.printerr('Please hover mouse cursor over a target tile to dump to!')
return
end
if not pos then return end --Shouldn't happen since button would be disabled

local tt = dfhack.maps.getTileType(pos)
if not (tt and dfhack.maps.isTileVisible(pos)) then
Expand Down

0 comments on commit 2fa3a43

Please sign in to comment.