mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Fix eat replace timer for sheep
This commit is contained in:
parent
c049113f26
commit
74e55ca361
@ -525,7 +525,7 @@ function mob_class:replace_node(pos)
|
|||||||
self.state = "eat"
|
self.state = "eat"
|
||||||
self:set_animation("eat")
|
self:set_animation("eat")
|
||||||
self:set_velocity(0)
|
self:set_velocity(0)
|
||||||
minetest.after(0.5, function()
|
minetest.after(1.5, function()
|
||||||
if self and self.object and not self.dead then
|
if self and self.object and not self.dead then
|
||||||
self.object:set_velocity(vector.new(0,0,0))
|
self.object:set_velocity(vector.new(0,0,0))
|
||||||
minetest.set_node(pos, newnode)
|
minetest.set_node(pos, newnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user