mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-24 19:41:08 +01:00
Fix crash when respawning
This commit is contained in:
parent
6a1b8d0f09
commit
a03aa6065b
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ minetest.register_on_respawnplayer(function(player)
|
||||||
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
|
||||||
mcl_util.remove_entity(self)
|
mcl_util.remove_entity(ent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue