diff options
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 8788a8ce5..0718da06c 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -1131,7 +1131,7 @@ void cEntity::HandlePhysics(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) } // Get water direction - Vector3f WaterDir = m_World->GetWaterSimulator()->GetFlowingDirection(BlockX, BlockY, BlockZ); + Vector3f WaterDir = m_World->GetWaterSimulator()->GetFlowingDirection({BlockX, BlockY, BlockZ}); m_WaterSpeed *= 0.9; // Reduce speed each tick @@ -1433,7 +1433,7 @@ bool cEntity::DetectPortal() return false; } - if (const auto Position = m_Position.Floor(); cChunkDef::IsValidHeight(Position.y)) + if (const auto Position = m_Position.Floor(); cChunkDef::IsValidHeight(Position)) { switch (GetWorld()->GetBlock(Position)) { |