1
0
Fork 0

Fix no swim exhaustion when wading through water

This commit is contained in:
Wuzzy 2017-05-23 00:45:31 +02:00
parent 355c99fee2
commit 632ebd6389
1 changed files with 1 additions and 1 deletions

View File

@ -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