]> git.lizzy.rs Git - Crafter.git/commitdiff
Swim fix attempt 1
authoroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 21 Jun 2020 21:36:53 +0000 (17:36 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Sun, 21 Jun 2020 21:36:53 +0000 (17:36 -0400)
mods/player_mechanics/player_mechanics.lua

index c1e5ab8de34fae3f956c53fcf67eff0d25cfa8da..c1b7e39702a094f21b016b8c7976302f6a0c2152 100644 (file)
@@ -101,6 +101,8 @@ local control_state = function(player)
        head = minetest.get_item_group(get_player_head_env(player),"water") > 0
        legs = minetest.get_item_group(get_player_legs_env(player),"water") > 0
 
+       in_water = temp_pool.swimming
+
        --check if in water
        if head then
                in_water = true