mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 01:30:08 +08:00
fix: login too slow (#2380)
This commit is contained in:
committed by
GitHub
Unverified
parent
ec2bfffdd1
commit
5ee4812ac5
@@ -311,11 +311,6 @@ public final class GameServer extends KcpServer implements Iterable<Player> {
|
||||
world.save(); // Save the player's world
|
||||
}
|
||||
|
||||
public void registerHomeWorld(HomeWorld homeWorld) {
|
||||
this.getHomeWorlds().put(homeWorld.getOwnerUid(), homeWorld);
|
||||
this.registerWorld(homeWorld);
|
||||
}
|
||||
|
||||
public HomeWorld getHomeWorldOrCreate(Player owner) {
|
||||
return this.getHomeWorlds()
|
||||
.computeIfAbsent(owner.getUid(), (uid) -> new HomeWorld(this, owner));
|
||||
|
||||
Reference in New Issue
Block a user