forked from mtcontrib/mob_horse
player cannot ride child horse
This commit is contained in:
parent
8b206882a4
commit
ed409a6e9a
2
init.lua
2
init.lua
@ -130,7 +130,7 @@ self.saddle = nil
|
|||||||
self.saddle = nil
|
self.saddle = nil
|
||||||
|
|
||||||
-- attach player to horse
|
-- attach player to horse
|
||||||
elseif (not self.driver
|
elseif (not self.driver and not self.child
|
||||||
and clicker:get_wielded_item():get_name() == "mobs:saddle")
|
and clicker:get_wielded_item():get_name() == "mobs:saddle")
|
||||||
or self.saddle then
|
or self.saddle then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user