mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-13 03:10:22 +01:00
fix "stand" mobs fall jitter
This commit is contained in:
parent
e50d04a6aa
commit
7fbfd9d59c
2
api.lua
2
api.lua
@ -273,7 +273,7 @@ function mob_class:set_velocity(v)
|
|||||||
-- halt mob if it has been ordered to stay
|
-- halt mob if it has been ordered to stay
|
||||||
if self.order == "stand" then
|
if self.order == "stand" then
|
||||||
|
|
||||||
self.object:set_velocity({x = 0, y = 0, z = 0})
|
self.object:set_velocity({x = 0, y = self.fall_speed, z = 0})
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user