Mobs: Don't set gotten in API anymore

This commit is contained in:
Wuzzy 2019-09-10 17:14:34 +02:00
parent 9416305fa6
commit 44bd5dba6c
2 changed files with 4 additions and 9 deletions

View file

@ -1142,11 +1142,6 @@ local replace = function(self, pos)
minetest.set_node(pos, {name = with})
end
-- when cow/sheep eats grass, replace wool and milk
if self.gotten == true then
self.gotten = false
self.object:set_properties(self)
end
end
end
end
@ -3780,8 +3775,6 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame)
self.horny = true
end
self.gotten = false
if tame then
self.tamed = true