mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-04 21:13:50 +01:00
stable at last
This commit is contained in:
parent
bcaceac28b
commit
738940a431
@ -143,7 +143,7 @@ end
|
|||||||
-- if error: @returns: false, String: error message
|
-- if error: @returns: false, String: error message
|
||||||
function parse.keytable(tbl, facing, sum)
|
function parse.keytable(tbl, facing, sum)
|
||||||
local min, max = Vector3.new(), Vector3.new()
|
local min, max = Vector3.new(), Vector3.new()
|
||||||
local expected, d = 1, {"x", "y", "z"}
|
local expected = 1
|
||||||
local tmp = {axes = {}, num = 0, sign = 1, mirror = false}
|
local tmp = {axes = {}, num = 0, sign = 1, mirror = false}
|
||||||
|
|
||||||
--- Processes a number and adds it to the min and max vectors.
|
--- Processes a number and adds it to the min and max vectors.
|
||||||
@ -168,7 +168,7 @@ function parse.keytable(tbl, facing, sum)
|
|||||||
|
|
||||||
if expected == 1 then
|
if expected == 1 then
|
||||||
if tmp.num then
|
if tmp.num then
|
||||||
parseNumber(tmp.num, {d, rev=d}, tmp.sign)
|
parseNumber(tmp.num, {"x", "y", "z", rev={"x", "y", "z"}}, tmp.sign)
|
||||||
else
|
else
|
||||||
local key_type, key_entry, key_sign = parse.keyword(v)
|
local key_type, key_entry, key_sign = parse.keyword(v)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user