aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-11-30 23:34:41 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2020-11-30 23:34:41 +0100
commitf589b9db5e89a8f6a16fd051f74d0527c66020bf (patch)
tree491e1b50611686fc3af398b44408697d69cc0d7b /init.lua
parent0ddb46864547059027eb60c98af46cb018943f35 (diff)
downloadmob_horse-master.tar.gz
mob_horse-master.tar.bz2
mob_horse-master.zip
allow feeding by fake playerHEADmaster
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 65d70fc..4cd773c 100644
--- a/init.lua
+++ b/init.lua
@@ -107,7 +107,7 @@ mobs:register_mob("mob_horse:horse", {
on_rightclick = function(self, clicker)
-- make sure player is clicking
- if not clicker or not clicker:is_player() then
+ if not clicker or not (clicker:is_player() or clicker.is_fake_player) then
return
end