From 23ced99131c24616591794d334bdc252c5b6cd3c Mon Sep 17 00:00:00 2001 From: myk002 Date: Wed, 3 Aug 2022 00:30:46 -0700 Subject: [PATCH] fix call to new functions in existing coord fn --- library/lua/argparse.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/lua/argparse.lua b/library/lua/argparse.lua index a143f454c..e094bbb57 100644 --- a/library/lua/argparse.lua +++ b/library/lua/argparse.lua @@ -186,9 +186,9 @@ function coords(arg, arg_name, skip_validation) return cursor end local numbers = numberList(arg, arg_name, 3) - local pos = xyz2pos(check_nonnegative_int(numbers[1]), - check_nonnegative_int(numbers[2]), - check_nonnegative_int(numbers[3])) + local pos = xyz2pos(nonnegativeInt(numbers[1]), + nonnegativeInt(numbers[2]), + nonnegativeInt(numbers[3])) if not skip_validation and not dfhack.maps.isValidTilePos(pos) then arg_error(arg_name, 'specified coordinates not on current map: "%s"', arg)