summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities
diff options
context:
space:
mode:
Diffstat (limited to 'src/BlockEntities')
-rw-r--r--src/BlockEntities/MobSpawnerEntity.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/BlockEntities/MobSpawnerEntity.cpp b/src/BlockEntities/MobSpawnerEntity.cpp
index 772fa8d79..b92139025 100644
--- a/src/BlockEntities/MobSpawnerEntity.cpp
+++ b/src/BlockEntities/MobSpawnerEntity.cpp
@@ -178,11 +178,9 @@ void cMobSpawnerEntity::SpawnEntity(void)
if (Chunk->GetWorld()->SpawnMobFinalize(std::move(Monster)) != cEntity::INVALID_ID)
{
HaveSpawnedEntity = true;
- Chunk->BroadcastSoundParticleEffect(
+ m_World->BroadcastSoundParticleEffect(
EffectID::PARTICLE_MOBSPAWN,
- static_cast<int>(PosX * 8.0),
- static_cast<int>(RelY * 8.0),
- static_cast<int>(PosZ * 8.0),
+ Vector3d(PosX, RelY, PosZ).Floor(),
0
);
NearbyEntities++;