diff options
author | hle0 <91701075+hle0@users.noreply.github.com> | 2022-03-26 22:10:30 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-04-12 01:06:31 +0200 |
commit | d98e2bdaa3903de29f62791c05472a693b0ea36b (patch) | |
tree | e2acc9547a4dc5a1d52468f7eff1174aa29b08e4 /src/Entities/Player.cpp | |
parent | Disable u8 prefix C++20 warning since we need it (diff) | |
download | cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar.gz cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar.bz2 cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar.lz cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar.xz cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.tar.zst cuberite-d98e2bdaa3903de29f62791c05472a693b0ea36b.zip |
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r-- | src/Entities/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 3fd2aac48..c2c3b51ea 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -2377,8 +2377,8 @@ bool cPlayer::DoesPlacingBlocksIntersectEntity(const std::initializer_list<sSetB cBoundingBox BlockBox = cBlockHandler::For(blk.m_BlockType).GetPlacementCollisionBox( m_World->GetBlock({ x - 1, y, z }), m_World->GetBlock({ x + 1, y, z }), - (y == 0) ? E_BLOCK_AIR : m_World->GetBlock({ x, y - 1, z }), - (y == cChunkDef::Height - 1) ? E_BLOCK_AIR : m_World->GetBlock({ x, y + 1, z }), + (y == 0) ? static_cast<BLOCKTYPE>(E_BLOCK_AIR) : m_World->GetBlock({ x, y - 1, z }), + (y == cChunkDef::Height - 1) ? static_cast<BLOCKTYPE>(E_BLOCK_AIR) : m_World->GetBlock({ x, y + 1, z }), m_World->GetBlock({ x, y, z - 1 }), m_World->GetBlock({ x, y, z + 1 }) ); |