Fix (core) water level and ground level correction (#11552)
We do not need to excessively have ground level be -2 below the player when underwater. ground level is ground level. no need for a lower adjustment. Most likely left over from from when the shallow water calculations was wrong entirely that lead to false hits with water walking detection due to core side calculations.
This commit is contained in:
parent
8900cab657
commit
cc6528ad7b
1 changed files with 1 additions and 1 deletions
|
|
@ -1952,7 +1952,7 @@ inline LiquidData const GridMap::GetLiquidData(float x, float y, float z, float
|
|||
float ground_level = getHeight(x, y);
|
||||
|
||||
// Check water level and ground level
|
||||
if (liquid_level >= ground_level && z >= ground_level - 2)
|
||||
if (liquid_level >= ground_level && z >= ground_level)
|
||||
{
|
||||
// All ok in water -> store data
|
||||
liquidData.Entry = entry;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue