forked from MineClone5/MineClone5
Merge branch 'master' into pumpkin_hud
This commit is contained in:
commit
aeb8fa5b88
|
@ -38,8 +38,11 @@ end
|
|||
--this is a generic float function
|
||||
mobs.float = function(self)
|
||||
|
||||
if self.object:get_acceleration().y ~= 0 then
|
||||
local acceleration = self.object:get_acceleration()
|
||||
if acceleration and acceleration.y ~= 0 then
|
||||
self.object:set_acceleration(vector_new(0,0,0))
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
local current_velocity = self.object:get_velocity()
|
||||
|
|
Loading…
Reference in New Issue