From 112d4389eaa6d315ddd5221fa471fff3dabedaab Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 26 Jan 2018 16:17:42 +0000 Subject: [PATCH] Hide entity bug by not spawning maps at 0,0,0 This has always been a bug, it's just now more obvious as 0,0,0 may have been visible before. Ideally the engine would just not bug with entity attachments, but alas. A better mod-side fix would be to constantly reattach in wield3d and guages, but cba. --- mods/ctf_map/schem_map.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/ctf_map/schem_map.lua b/mods/ctf_map/schem_map.lua index 5f4f8c1..7c1a13f 100644 --- a/mods/ctf_map/schem_map.lua +++ b/mods/ctf_map/schem_map.lua @@ -49,11 +49,15 @@ function ctf_map.place_map(map) minetest.after(2, function() minetest.chat_send_all("Map: " .. map.name .. " by " .. map.author) end) + + minetest.after(10, function() + minetest.fix_light(ctf_map.map.pos1, ctf_map.map.pos2) + end) end, nil) end function ctf_match.load_map_meta(idx, name) - local offset = vector.new(600 * (idx - 1), 0, 0) + local offset = vector.new(600 * idx, 0, 0) local meta = Settings(mapdir .. name .. ".conf") local initial_stuff = meta:get("initial_stuff") @@ -133,11 +137,6 @@ ctf_match.register_on_new_match(function() -- Place map ctf_map.place_map(ctf_map.map) - - -- Fixes - minetest.after(10, function() - minetest.fix_light(ctf_map.map.pos1, ctf_map.map.pos2) - end) end) function ctf_match.create_teams()