fix another compatibility issue

This commit is contained in:
cora 2022-02-10 20:48:41 +01:00
parent 148ecdf29f
commit bf5533799d
1 changed files with 1 additions and 0 deletions

View File

@ -506,6 +506,7 @@ function ARROW_ENTITY.on_activate(self, staticdata, dtime_s)
end
minetest.register_on_respawnplayer(function(player)
if not player:get_children then return end
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