From 9099f3ac7a8f8bd3d6088dec71704f03ce210db0 Mon Sep 17 00:00:00 2001 From: epCode Date: Mon, 31 Oct 2022 23:10:51 +0000 Subject: [PATCH] Fix mobs flopping for the first second when in thier own element --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 19d627c91..567ece152 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -531,7 +531,7 @@ local flight_check = function(self) end for _,checknode in pairs(fly_in) do - if nod == checknode then + if nod == checknode or nod == "ignore" then return true end end @@ -2468,7 +2468,7 @@ local follow_flop = function(self) -- swimmers flop when out of their element, and swim again when back in if self.fly then local s = self.object:get_pos() - if not flight_check(self, s) then + if flight_check(self, s) == false then self.state = "flop" self.object:set_acceleration({x = 0, y = DEFAULT_FALL_SPEED, z = 0})