From bd3972df235652ddb2cf571dd8f17c06e3e3453e Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sat, 8 Oct 2022 17:30:42 +0000 Subject: [PATCH] fix crash --- setup.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.lua b/setup.lua index c742454..c6ff5bc 100644 --- a/setup.lua +++ b/setup.lua @@ -61,6 +61,7 @@ arena_lib.on_disable("the_bridge", function(arena, p_name) end) arena_lib.on_quit("the_bridge", function(arena, p_name, is_spectator, reason) + if is_spectator then return end player = minetest.get_player_by_name(p_name) player:hud_remove(arena.huds[p_name].blue) player:hud_remove(arena.huds[p_name].red)