Credits page
This commit is contained in:
@@ -51,6 +51,7 @@ export class ClientLoop {
|
||||
}
|
||||
|
||||
show_screen(screen: GuiScreen) {
|
||||
this.screen?.on_close();
|
||||
this.client = undefined;
|
||||
this.screen = screen;
|
||||
InputManager.set_mouse_grabbed(false);
|
||||
@@ -60,6 +61,7 @@ export class ClientLoop {
|
||||
const client = new Client(connection, (message) => this.show_screen(new DisconnectedScreen(message)));
|
||||
set_mods_client(client);
|
||||
client.chat.add("Connected to the server");
|
||||
this.screen?.on_close();
|
||||
this.screen = undefined;
|
||||
this.client = client;
|
||||
console.log("Game started");
|
||||
|
||||
Reference in New Issue
Block a user