Skip to content

Commit c932ea3

Browse files
authored
No need for Mth::floor
1 parent ad0f2d1 commit c932ea3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/world/entity/Monster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ float Monster::getWalkTargetValue(const TilePos& pos) const
7272

7373
bool Monster::canSpawn()
7474
{
75-
TilePos pos(Mth::floor(m_pos.x), Mth::floor(m_hitbox.min.y), Mth::floor(m_pos.z));
75+
TilePos pos(m_pos.x, m_hitbox.min.y, m_pos.z);
7676

7777
if (m_pLevel->getBrightness(LightLayer::Sky, pos) > m_random.nextInt(30))
7878
{

0 commit comments

Comments
 (0)