fix typo self.flying_in to self.fly_in

This commit is contained in:
TenPlus1 2020-06-28 14:51:37 +01:00
parent b17a5bfe77
commit 48bfa284d0
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ function mob_class:set_velocity(v)
-- assume any mob not flying will slow down in water as mobs flying in air
-- wont be near water, and mobs flying in water will swim at full speed
if not self.flying_in and (visc and visc > 0) then
if not self.fly_in and (visc and visc > 0) then
new_vel.x = new_vel.x ~= 0 and new_vel.x / visc or 0
new_vel.y = new_vel.y ~= 0 and new_vel.y / visc or 0