mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-13 05:26:05 +00:00
Fix bugs
i'm terrible at lua
This commit is contained in:
parent
896cdc651f
commit
798dea5223
2 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
function place_map(map)
|
||||
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)
|
||||
dofile(map_path .. map .. "/map.lua")
|
||||
local map_data = dofile(map_path .. map .. "/map.lua")
|
||||
return map_data
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -9,3 +9,5 @@ local map_data = {
|
|||
spawn_y = 0,
|
||||
spawn_z = 0
|
||||
}
|
||||
|
||||
return map_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue