mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
-axyzb patch
This commit is contained in:
parent
cb1d54c665
commit
b31b005bdd
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ function parse_params_srect(params_text)
|
|||
|
||||
-- If ax1 is bad set to player facing dir
|
||||
if ax1 == len or not ax1:match('[xyz]') then ax1 = "get"
|
||||
else ax1 = {wea.getsign(ax1, "int"),ax1:gsub('-?',''):sub(1,1)}
|
||||
else ax1 = {wea.getsign(ax1, "int"),ax1:gsub('[^xyz]',''):sub(1,1)}
|
||||
end
|
||||
-- If ax2 is bad set to +y
|
||||
if not ax2 or ax2 == len or not ax2:match('[xyz]') then ax2 = "y" end
|
||||
ax2 = {wea.getsign(ax2, "int"),ax2:gsub('-?',''):sub(1,1)}
|
||||
ax2 = {wea.getsign(ax2, "int"),ax2:gsub('[^xyz]',''):sub(1,1)}
|
||||
|
||||
len = tonumber(len)
|
||||
-- If len == nill cancel the operation
|
||||
|
|
Loading…
Reference in a new issue