From 341787468a4579f0c62a57f1b9afcab257d421a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9rez-Cerezo?= Date: Fri, 24 Nov 2017 10:57:18 +0100 Subject: Fixed stupid bug --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 30af488..4f1a455 100644 --- a/init.lua +++ b/init.lua @@ -174,7 +174,7 @@ minetest.register_abm({ for _,obj in ipairs(objs) do if not obj:is_player() and obj:get_armor_groups().fleshy and obj:get_armor_groups().fleshy > 0 and is_mob(obj) then -- obj:on_rightclick(fake_player) - if obj.get_luaentity().on_rightclick then + if obj:get_luaentity().on_rightclick then obj:get_luaentity():on_rightclick(fake_player) end -- minetest.chat_send_all("animal fed") -- cgit v1.2.3