limit egg lay
parent
aa48c8b4e9
commit
193d92d2bc
|
@ -6,10 +6,10 @@ end
|
|||
|
||||
--Lay Egg
|
||||
petz.lay_egg = function(self)
|
||||
if petz.isinliquid(self) then --do not put eggs when in liquid
|
||||
if self.eggs_count >= petz.settings.max_laid_eggs then
|
||||
return
|
||||
end
|
||||
if self.eggs_count >= petz.settings.max_laid_eggs then
|
||||
if petz.isinliquid(self) then --do not put eggs when in liquid
|
||||
return
|
||||
end
|
||||
local pos = self.object:get_pos()
|
||||
|
|
Loading…
Reference in New Issue