Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Update set-orientation.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
kane-t committed Jul 19, 2015
1 parent 9f31929 commit f17f46d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions set-orientation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ local unit = nil
if args.unit and tonumber(args.unit) then -- Check for unit declaration !REQUIRED
unit = df.unit.find(tonumber(args.unit))
else
unit = dfhack.gui.getSelectedUnit()
end

if unit == nil then
print('No unit selected')
return
end
Expand Down

0 comments on commit f17f46d

Please sign in to comment.