diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -174,7 +174,9 @@ 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) - obj:get_luaentity():on_rightclick(fake_player) + if obj.get_luaentity().on_rightclick then + obj:get_luaentity():on_rightclick(fake_player) + end -- minetest.chat_send_all("animal fed") end end |