From 3d6ff573e749d1e79db4b5e47b1e94f8d6bc00be Mon Sep 17 00:00:00 2001 From: Johannes Fritz Date: Mon, 14 Nov 2022 12:40:45 -0600 Subject: [PATCH] Fix undeclared global variable in mcl_playerplus --- mods/PLAYER/mcl_playerplus/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index c21392e75..3d3e5f129 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -549,7 +549,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 not parent and (get_item_group(node_feet, "liquid") ~= 0 or + if not player:get_attach() and (get_item_group(node_feet, "liquid") ~= 0 or get_item_group(node_stand, "liquid") ~= 0) then local lastPos = mcl_playerplus_internal[name].lastPos if lastPos then