mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-23 23:53:44 +01:00
srect: minor formatting tidyup
This commit is contained in:
parent
9f01703744
commit
8cce699313
@ -18,8 +18,7 @@ worldedit.register_command("srect", {
|
|||||||
else
|
else
|
||||||
local success, value = wea.getsign(ax1, "int")
|
local success, value = wea.getsign(ax1, "int")
|
||||||
if not success then return success, value
|
if not success then return success, value
|
||||||
else ax1 = { value, ax1:gsub('[^xyz]',''):sub(1,1) }
|
else ax1 = { value, ax1:gsub('[^xyz]', ''):sub(1, 1) } end
|
||||||
end
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user