mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-10-06 11:41:53 +02:00
Reset mob velocity when surviving flop
This commit is contained in:
parent
c48371e859
commit
e23bdca570
@ -2166,6 +2166,7 @@ local follow_flop = function(self)
|
|||||||
elseif self.state == "flop" then
|
elseif self.state == "flop" then
|
||||||
self.state = "stand"
|
self.state = "stand"
|
||||||
self.object:set_acceleration({x = 0, y = 0, z = 0})
|
self.object:set_acceleration({x = 0, y = 0, z = 0})
|
||||||
|
set_velocity(self, 0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user