mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
fix cow and sheep taming bug
This commit is contained in:
parent
e307db5df0
commit
0703b8b4f2
2
cow.lua
2
cow.lua
@ -64,8 +64,6 @@ mobs:register_mob("mobs_animal:cow", {
|
|||||||
|
|
||||||
-- if fed 7x wheat or grass then cow can be milked again
|
-- if fed 7x wheat or grass then cow can be milked again
|
||||||
if self.food > 6 then
|
if self.food > 6 then
|
||||||
|
|
||||||
self.food = 0
|
|
||||||
self.gotten = false
|
self.gotten = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -97,7 +97,6 @@ stepheight = 0.6,
|
|||||||
--if fed 7x grass or wheat then sheep regrows wool
|
--if fed 7x grass or wheat then sheep regrows wool
|
||||||
if self.food > 6 then
|
if self.food > 6 then
|
||||||
|
|
||||||
self.food = 0
|
|
||||||
self.gotten = false
|
self.gotten = false
|
||||||
|
|
||||||
self.object:set_properties({
|
self.object:set_properties({
|
||||||
|
Loading…
Reference in New Issue
Block a user