forked from MineClone5/MineClone5
#123 Fix compatibility crash
This commit is contained in:
parent
7f70e2e613
commit
44cb0e563c
|
@ -506,7 +506,7 @@ function ARROW_ENTITY.on_activate(self, staticdata, dtime_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_respawnplayer(function(player)
|
minetest.register_on_respawnplayer(function(player)
|
||||||
if not player:get_children then return end
|
if not player.get_children then return end
|
||||||
for _, obj in pairs(player:get_children()) do
|
for _, obj in pairs(player:get_children()) do
|
||||||
local ent = obj:get_luaentity()
|
local ent = obj:get_luaentity()
|
||||||
if ent and ent.name and string.find(ent.name, "mcl_bows:arrow_entity") then
|
if ent and ent.name and string.find(ent.name, "mcl_bows:arrow_entity") then
|
||||||
|
|
Loading…
Reference in New Issue