forked from mtcontrib/mobs_water
set_velocity fix
This commit is contained in:
parent
2192d3627e
commit
04474de70c
@ -51,7 +51,7 @@ if mobs.mod and mobs.mod == "redo" then
|
|||||||
follow = "farming:carrot",
|
follow = "farming:carrot",
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
self.state = ""
|
self.state = ""
|
||||||
self.set_velocity(self, 0)
|
set_velocity(self, 0)
|
||||||
self.object:set_animation({x=self.animation.hide_start, y=self.animation.hide_end}, self.animation.speed_normal, 0)
|
self.object:set_animation({x=self.animation.hide_start, y=self.animation.hide_end}, self.animation.speed_normal, 0)
|
||||||
minetest.after(5, function()
|
minetest.after(5, function()
|
||||||
self.state = "stand"
|
self.state = "stand"
|
||||||
|
Loading…
Reference in New Issue
Block a user