From 38cb2fdeec5a8e89025999bce34d75f22fc422ba Mon Sep 17 00:00:00 2001 From: epCode Date: Sat, 20 Feb 2021 19:19:59 -0800 Subject: [PATCH] Fix swimming crash (sorry) --- mods/PLAYER/mcl_player/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index 2cf9c4e08..2fcf5198e 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -192,7 +192,7 @@ minetest.register_globalstep(function(dtime) end elseif controls.LMB and not controls.sneak and standing_on_water and is_sprinting == true or controls.LMB and block_in_head.walkable then player_set_animation(player, "swim_mine") - elseif not controls.LMB and not controls.sneak and standing_on_water and is_sprinting == true or not controls.LMB and block_in_head.walkable then + elseif not controls.LMB and not controls.sneak and standing_on_water and is_sprinting == true then player_set_animation(player, "swim_stand") elseif controls.LMB and not controls.sneak then player_set_animation(player, "mine")