Fix no swim exhaustion when wading through water
This commit is contained in:
parent
355c99fee2
commit
632ebd6389
|
@ -198,7 +198,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
--[[ Swimming: Cause exhaustion.
|
--[[ Swimming: Cause exhaustion.
|
||||||
NOTE: As of 0.4.15, it only counts as swimming when you are with the feet inside the liquid!
|
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. ]]
|
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
|
minetest.get_item_group(playerplus[name].nod_stand, "liquid") ~= 0 then
|
||||||
local lastPos = playerplus_internal[name].lastPos
|
local lastPos = playerplus_internal[name].lastPos
|
||||||
if lastPos then
|
if lastPos then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user