Skip to content

Commit

Permalink
Make ESC work in quantity prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Nov 9, 2015
1 parent f3d86f5 commit 4867025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/create-item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function hackWish(unit)
if not descriptionok then return end
end
if args.multi then
repeat amountok,amount=script.showInputPrompt('Wish','How many do you want? (numbers only!)',COLOR_LIGHTGREEN) until tonumber(amount)
repeat amountok,amount=script.showInputPrompt('Wish','How many do you want? (numbers only!)',COLOR_LIGHTGREEN) until tonumber(amount) or not amountok
if not amountok then return end
if mattype and itemtype then
if df.item_type.attrs[itemtype].is_stackable then
Expand Down

0 comments on commit 4867025

Please sign in to comment.