Fixed cow/sheep baby getting horny (cant have that)

master
tenplus1 2015-03-13 17:10:46 +00:00
parent d1b86c3616
commit 794265e238
2 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,8 @@ mobs:register_mob("mobs:cow", {
end
self.food = (self.food or 0) + 1
if self.food >= 8 then
self.food = 0 ; self.horny = true
self.food = 0
if self.child == false then self.horny = true end
self.gotten = false -- ready to be milked again
self.tamed = true
minetest.sound_play("mobs_cow", {object = self.object,gain = 1.0,max_hear_distance = 32,loop = false,})

View File

@ -59,7 +59,8 @@ mobs:register_mob("mobs:sheep", {
end
self.food = (self.food or 0) + 1
if self.food >= 8 then
self.food = 0 ; self.horny = true
self.food = 0
if self.child == false then self.horny = true end
self.gotten = false -- can be shaved again
self.tamed = true
self.object:set_properties({