diff options
author | Bond-009 <bond.009@outlook.com> | 2017-09-25 18:17:45 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-09-25 18:17:45 +0200 |
commit | 10c5c1227e5a663b3a53c336cfa6a0a98f874265 (patch) | |
tree | b45f06fd4d7ceaca6807113d58d4aba7166d9aa5 /src/BlockEntities/MobSpawnerEntity.cpp | |
parent | cBlockArea: Fix performance regression (#4045) (diff) | |
download | cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar.gz cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar.bz2 cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar.lz cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar.xz cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.tar.zst cuberite-10c5c1227e5a663b3a53c336cfa6a0a98f874265.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/MobSpawnerEntity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/MobSpawnerEntity.cpp b/src/BlockEntities/MobSpawnerEntity.cpp index 90534216a..83293765f 100644 --- a/src/BlockEntities/MobSpawnerEntity.cpp +++ b/src/BlockEntities/MobSpawnerEntity.cpp @@ -122,7 +122,7 @@ bool cMobSpawnerEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) void cMobSpawnerEntity::ResetTimer(void) { m_SpawnDelay = GetRandomProvider().RandInt<short>(200, 800); - m_World->BroadcastBlockEntity(m_PosX, m_PosY, m_PosZ); + m_World->BroadcastBlockEntity(GetPos()); } |