diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-10-24 01:41:36 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-10-24 01:41:36 +0200 |
commit | 4666c1bf3082a9b313336389ac25013429f2145f (patch) | |
tree | 10c4c7fb704267ed1ed5a2ae3b2e4b7f63ab9490 /source/World.cpp | |
parent | Removed my hackish Light functions (diff) | |
parent | APIDump: Added cChatColor constants. (diff) | |
download | cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.gz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.bz2 cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.lz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.xz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.zst cuberite-4666c1bf3082a9b313336389ac25013429f2145f.zip |
Diffstat (limited to 'source/World.cpp')
-rw-r--r-- | source/World.cpp | 3 |
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); |