i'm terrible at lua
This commit is contained in:
a-bad-dev 2025-12-08 21:54:49 -04:00
commit 798dea5223
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
function place_map(map) function place_map(map)
local map_path = core.get_modpath("maps") .. "/maps/" local map_path = core.get_modpath("maps") .. "/maps/"
core.place_schematic({x=0, y=0, z=0}, map_path .. map .. "/map.mts", 0, nil, false) core.place_schematic({x=0, y=0, z=0}, map_path .. map .. "/map.mts", 0, nil, false)
dofile(map_path .. map .. "/map.lua") local map_data = dofile(map_path .. map .. "/map.lua")
return map_data return map_data
end end

View file

@ -9,3 +9,5 @@ local map_data = {
spawn_y = 0, spawn_y = 0,
spawn_z = 0 spawn_z = 0
} }
return map_data