From 48bfa284d0b25ca9dbd6b25ca83810ef766d3bb3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 28 Jun 2020 14:51:37 +0100 Subject: [PATCH] fix typo self.flying_in to self.fly_in --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 7e6f0f9..2aff851 100644 --- a/api.lua +++ b/api.lua @@ -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