From 632ebd6389f07462fccece1c628062b2c8f226c7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 23 May 2017 00:45:31 +0200 Subject: [PATCH] Fix no swim exhaustion when wading through water --- mods/PLAYER/playerplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/playerplus/init.lua b/mods/PLAYER/playerplus/init.lua index 680da8ce3d..3dc273461a 100644 --- a/mods/PLAYER/playerplus/init.lua +++ b/mods/PLAYER/playerplus/init.lua @@ -198,7 +198,7 @@ minetest.register_globalstep(function(dtime) --[[ Swimming: Cause exhaustion. NOTE: As of 0.4.15, it only counts as swimming when you are with the feet inside the liquid! Head alone does not count. We respect that for now. ]] - if minetest.get_item_group(playerplus[name].nod_feet, "liquid") ~= 0 and + if minetest.get_item_group(playerplus[name].nod_feet, "liquid") ~= 0 or minetest.get_item_group(playerplus[name].nod_stand, "liquid") ~= 0 then local lastPos = playerplus_internal[name].lastPos if lastPos then