Automatically fix incorrect chest zones in map configs
This commit is contained in:
parent
dfd913971c
commit
ac24f09417
1 changed files with 2 additions and 0 deletions
|
@ -168,6 +168,8 @@ local function load_map_meta(idx, dirname, meta)
|
||||||
assert(from and to, "Positions needed for chest zone " ..
|
assert(from and to, "Positions needed for chest zone " ..
|
||||||
i .. " in map " .. map.name)
|
i .. " in map " .. map.name)
|
||||||
|
|
||||||
|
from, to = vector.sort(from, to)
|
||||||
|
|
||||||
map.chests[i] = {
|
map.chests[i] = {
|
||||||
from = vector.add(offset, from),
|
from = vector.add(offset, from),
|
||||||
to = vector.add(offset, to),
|
to = vector.add(offset, to),
|
||||||
|
|
Loading…
Reference in a new issue