mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Fix clientside guessing making floating go crazy client side
This commit is contained in:
parent
b7c7c2627b
commit
bac191293b
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ end
|
|||
--this is a generic float function
|
||||
mobs.float = function(self)
|
||||
|
||||
if self.object:get_acceleration().y ~= 0 then
|
||||
self.object:set_acceleration(vector_new(0,0,0))
|
||||
end
|
||||
|
||||
local current_velocity = self.object:get_velocity()
|
||||
|
||||
local goal_velocity = {
|
||||
|
|
Loading…
Reference in a new issue