mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-05 06:53:52 +01:00
Debugging returns
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
e82c8b1e81
commit
0c4736fbc2
@ -11,11 +11,15 @@ function parse_params_srect(params_text)
|
|||||||
|
|
||||||
-- If ax1 is bad set to player facing dir
|
-- If ax1 is bad set to player facing dir
|
||||||
if ax1 == len or not ax1:match('[xyz]') then ax1 = "get"
|
if ax1 == len or not ax1:match('[xyz]') then ax1 = "get"
|
||||||
else ax1 = {wea.getsign(ax1, "int"),ax1:gsub('[^xyz]',''):sub(1,1)}
|
local success, value = wea.getsign(ax1, "int")
|
||||||
|
if not success then return success, value end
|
||||||
|
else ax1 = { value, ax1:gsub('[^xyz]',''):sub(1,1) }
|
||||||
end
|
end
|
||||||
-- If ax2 is bad set to +y
|
-- If ax2 is bad set to +y
|
||||||
if not ax2 or ax2 == len or not ax2:match('[xyz]') then ax2 = "y" end
|
if not ax2 or ax2 == len or not ax2:match('[xyz]') then ax2 = "y" end
|
||||||
ax2 = {wea.getsign(ax2, "int"),ax2:gsub('[^xyz]',''):sub(1,1)}
|
local success, value = wea.getsign(ax2, "int")
|
||||||
|
if not success then return success, value end
|
||||||
|
ax2 = { value, ax2:gsub('[^xyz]',''):sub(1,1) }
|
||||||
|
|
||||||
len = tonumber(len)
|
len = tonumber(len)
|
||||||
-- If len == nill cancel the operation
|
-- If len == nill cancel the operation
|
||||||
|
Loading…
Reference in New Issue
Block a user