From a03aa6065b231a5ac567a0248c9ad7b6262bf7e3 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Sat, 16 Nov 2024 08:16:36 -0600 Subject: [PATCH] Fix crash when respawning --- mods/ITEMS/mcl_bows/arrow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index d736ac834..33a110b05 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -201,7 +201,7 @@ minetest.register_on_respawnplayer(function(player) for _, obj in pairs(player:get_children()) do local ent = obj:get_luaentity() if ent and ent.name and string.find(ent.name, "mcl_bows:arrow_entity") then - mcl_util.remove_entity(self) + mcl_util.remove_entity(ent) end end end)