Browse Source

fix first chunks were not loaded if they were transmitted via background connection before the position was received via foreground connection

Kolja Strohm 10 months ago
parent
commit
c991a2a082
1 changed files with 1 additions and 0 deletions
  1. 1 0
      FactoryCraft/World.cpp

+ 1 - 0
FactoryCraft/World.cpp

@@ -76,6 +76,7 @@ World::~World()
 
 
 void World::update(bool background)
 void World::update(bool background)
 {
 {
+    if (background && currentDimension->getId() < 0) return;
     NetworkReader* serverMessageReader = 0;
     NetworkReader* serverMessageReader = 0;
     unsigned char type = 0;
     unsigned char type = 0;
     while (background
     while (background