1
0
Fork 0

Fix clientside guessing making floating go crazy client side

This commit is contained in:
jordan4ibanez 2021-04-25 01:45:03 -04:00
parent b7c7c2627b
commit bac191293b
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ end
--this is a generic float function --this is a generic float function
mobs.float = function(self) 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 current_velocity = self.object:get_velocity()
local goal_velocity = { local goal_velocity = {