summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-22 18:30:26 +0200
committermadmaxoft <github@xoft.cz>2013-10-22 18:30:26 +0200
commit0152a6ffb4c31ab007d96efd04a1dabedbbd743b (patch)
tree2f869c2e9cdfecf4dfd65c401e3a5248a8fa04e0 /source
parentFixed an assert in cMonster (diff)
downloadcuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar.gz
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar.bz2
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar.lz
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar.xz
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.tar.zst
cuberite-0152a6ffb4c31ab007d96efd04a1dabedbbd743b.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index d1ddb0e6e..a61c19d63 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -736,6 +736,9 @@ void cWorld::TickWeather(float a_Dt)
void cWorld::TickMobs(float a_Dt)
{
+ // _X 2013_10_22: This is a quick fix for #283 - the world needs to be locked while ticking mobs
+ cWorld::cLock Lock(*this);
+
// before every Mob action, we have to count them depending on the distance to players, on their family ...
cMobCensus MobCensus;
m_ChunkMap->CollectMobCensus(MobCensus);