Made hack-wish work properly.

develop
Putnam3145 2014-08-29 18:43:22 -07:00
parent ee82218147
commit baeb894502
1 changed files with 3 additions and 3 deletions

@ -198,6 +198,8 @@ end
scriptArgs={...} scriptArgs={...}
utils=require('utils')
validArgs = validArgs or utils.invert({ validArgs = validArgs or utils.invert({
'startup', 'startup',
'all', 'all',
@ -206,8 +208,6 @@ validArgs = validArgs or utils.invert({
'multi' 'multi'
}) })
utils=require('utils')
args = utils.processArgs({...}, validArgs) args = utils.processArgs({...}, validArgs)
eventful=require('plugins.eventful') eventful=require('plugins.eventful')
@ -220,4 +220,4 @@ else
if not reaction.code:find('DFHACK_WISH') then return nil end if not reaction.code:find('DFHACK_WISH') then return nil end
hackWish(unit) hackWish(unit)
end end
end end