From 44cb0e563c2a91dfdbb84619ab1337c1c7b798a5 Mon Sep 17 00:00:00 2001 From: kay27 Date: Sun, 13 Feb 2022 06:31:11 +0400 Subject: [PATCH] #123 Fix compatibility crash --- 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 c772ebcef..a05998a26 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -506,7 +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 + 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