From 48670251e435609d68674b3481656ba7107c82cf Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 9 Nov 2015 17:33:33 -0500 Subject: [PATCH] Make ESC work in quantity prompt --- scripts/gui/create-item.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gui/create-item.lua b/scripts/gui/create-item.lua index b32b91a9b..d22f68904 100644 --- a/scripts/gui/create-item.lua +++ b/scripts/gui/create-item.lua @@ -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