forked from MineClone5/MineClone5
Make llamas shift click breedable
This commit is contained in:
parent
53c96cae2d
commit
efce97c172
|
@ -138,15 +138,17 @@ mobs:register_mob("mobs_mc:llama", {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
--attempt to enter breed state
|
if clicker:get_player_control().sneak then
|
||||||
if mobs.enter_breed_state(self,clicker) then
|
--attempt to enter breed state
|
||||||
return
|
if mobs.enter_breed_state(self,clicker) then
|
||||||
end
|
return
|
||||||
|
end
|
||||||
|
|
||||||
--make baby grow faster
|
--make baby grow faster
|
||||||
if self.baby then
|
if self.baby then
|
||||||
mobs.make_baby_grow_faster(self,clicker)
|
mobs.make_baby_grow_faster(self,clicker)
|
||||||
return
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue