fix: login too slow (#2380)

This commit is contained in:
hamusuke
2023-09-21 10:23:08 +09:00
committed by GitHub
parent ec2bfffdd1
commit 5ee4812ac5
3 changed files with 2 additions and 6 deletions

View File

@@ -25,7 +25,6 @@ public class HomeWorld extends World {
this.home = owner.isOnline() ? owner.getHome() : GameHome.getByUid(owner.getUid());
this.refreshModuleManager();
server.registerHomeWorld(this);
}
@Override

View File

@@ -72,6 +72,8 @@ public class World implements Iterable<Player> {
this.scenes = Int2ObjectMaps.synchronize(new Int2ObjectOpenHashMap<>());
this.entity = new EntityWorld(this);
this.lastUpdateTime = System.currentTimeMillis();
server.registerWorld(this);
}
public int getLevelEntityId() {