Kolja Strohm %!s(int64=3) %!d(string=hai) anos
pai
achega
eae1cfdd7e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      FactoryCraft/World.cpp

+ 2 - 0
FactoryCraft/World.cpp

@@ -70,8 +70,10 @@ void World::update( bool background )
     Entity* player = getCurrentPlayerEntity();
     if( player )
     {
+        renderedWorld->lock();
         for( Dimension* dim : *dimensions )
             dim->removeDistantChunks( { (int)player->getPos().x, (int)player->getPos().y }, this );
+        renderedWorld->unlock();
     }
 }