summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.cpp
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-01-02 12:11:54 +0100
committerAlexander Harkness <me@bearbin.net>2022-01-13 00:48:19 +0100
commit1a310981826b800b1a4a405eaef0612cf7b1cb70 (patch)
tree869bc47f6ef261a4f7e9359b2808d685cc24c366 /src/Entities/Pawn.cpp
parentSuspicious packets: give 'em the silent treatment (#5375) (diff)
downloadcuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.gz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.bz2
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.lz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.xz
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.tar.zst
cuberite-1a310981826b800b1a4a405eaef0612cf7b1cb70.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Pawn.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index e227dca6f..760c9c0e6 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -324,7 +324,6 @@ void cPawn::HandleFalling(void)
/* We initialize these with what the foot is really IN, because for sampling we will move down with the epsilon above */
bool IsFootInWater = IsBlockWater(BlockAtFoot);
- bool IsFootInLiquid = IsFootInWater || IsBlockLava(BlockAtFoot) || (BlockAtFoot == E_BLOCK_COBWEB); // okay so cobweb is not _technically_ a liquid...
bool IsFootOnSlimeBlock = false;
/* The "cross" we sample around to account for the player width/girth */
@@ -377,7 +376,6 @@ void cPawn::HandleFalling(void)
if (j == 0)
{
IsFootInWater |= IsBlockWater(BlockType);
- IsFootInLiquid |= IsFootInWater || IsBlockLava(BlockType) || (BlockType == E_BLOCK_COBWEB); // okay so cobweb is not _technically_ a liquid...
IsFootOnSlimeBlock |= (BlockType == E_BLOCK_SLIME_BLOCK);
}