Crashfix when signs weren't set

master
Marco 2020-04-07 23:39:49 +02:00
parent 91303ed915
commit b269fc556c
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ if minetest.deserialize(storage:get_string("arenas")) ~= nil then
arena.in_celebration = false
minetest.after(0.01, function()
if not arena.sign.x then return end --se non è ancora stato registrato nessun cartello per l'arena, evito il crash
arena_lib.update_sign(arena.sign, arena)
end)
end