aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
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