summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-11-24 10:57:18 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2017-11-24 10:57:18 +0100
commit341787468a4579f0c62a57f1b9afcab257d421a9 (patch)
tree816d836f4a7beea5f0f493bc736863c87536f08b
parent27a0185e69dfc3b8226dcf85328e4b43f6c22c80 (diff)
downloadfeedlot-341787468a4579f0c62a57f1b9afcab257d421a9.tar.gz
feedlot-341787468a4579f0c62a57f1b9afcab257d421a9.tar.bz2
feedlot-341787468a4579f0c62a57f1b9afcab257d421a9.zip
Fixed stupid bug
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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")