remove whitespaces (#12)

This commit is contained in:
CrazyladMT 2026-02-19 23:02:56 -05:00 committed by GitHub
commit fc1407feff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 90 additions and 90 deletions

View file

@ -13,13 +13,13 @@ function place_map(map)
local map_data = dofile(map_path .. map .. "/map.lua")
core.place_schematic({x=0, y=0, z=0}, map_path .. map .. "/map.mts", 0, nil, true)
if map_data.spawn_x == nil or map_data.spawn_y == nil or map_data.spawn_z == nil then -- set a default spawnpoint if not set
map_data.spawn_x = map_data.size_x / 2
map_data.spawn_y = map_data.barrier_level + 1
map_data.spawn_z = map_data.size_z / 2
end
if map_data.start_time == nil or map_data.start_time <= 0 then
map_data.start_time = 30
end
@ -30,7 +30,7 @@ function place_map(map)
map_data.classes.class_2 = {}
map_data.classes.class_3 = {}
end
if map_data.classes.class_1.initial_items == nil or map_data.classes.class_1.name == nil then
map_data.classes.class_1.initial_items = {"ctf_ranged:m200_loaded", "default:sword_stone", "ctf_ranged:ammo 99"}
map_data.classes.class_1.name = "Long-range"
@ -46,7 +46,6 @@ function place_map(map)
map_data.classes.class_3.name = "Short-range"
end
return map_data
end