From 605c9a642e7277a37bac4756ba3f257a6e7d5a0f Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Sun, 12 Mar 2023 23:01:04 +0100 Subject: [PATCH] ...fix previous commit --- src/arena_lib/arena_manager.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/arena_lib/arena_manager.lua b/src/arena_lib/arena_manager.lua index 8b8b270..c06a0e4 100644 --- a/src/arena_lib/arena_manager.lua +++ b/src/arena_lib/arena_manager.lua @@ -245,9 +245,10 @@ arena_lib.on_quit("block_league", function(arena, p_name, is_spectator, reason) -- TEMP: get_luaentity() is needed for the moment, as entities on MT are -- half broken: they sometimes remain as an empty shell that can't be -- removed. If someone enters with a broken entity, we want to avoid the - -- server go to kaboom (as their get_luaentity() returns nil) + -- server go to kaboom (as their get_luaentity() returns nil). + -- See https://github.com/minetest/minetest/issues/13297 if not child:is_player() and child:get_luaentity() then - child:detach() + child:set_detach() end end end