Automatically fix incorrect chest zones in map configs

This commit is contained in:
rubenwardy 2020-03-15 01:00:04 +00:00
parent dfd913971c
commit ac24f09417

View file

@ -168,6 +168,8 @@ local function load_map_meta(idx, dirname, meta)
assert(from and to, "Positions needed for chest zone " ..
i .. " in map " .. map.name)
from, to = vector.sort(from, to)
map.chests[i] = {
from = vector.add(offset, from),
to = vector.add(offset, to),