runejs / server

RuneJS is a RuneScape game server written in TypeScript and JavaScript. The goal of the project is to create a comprehensive game engine, while also providing simple and easy to use content development systems and APIs.
GNU General Public License v3.0
238 stars 82 forks source link

[BUG] Logging out deletes NPCs #399

Closed Jameskmonger closed 1 year ago

Jameskmonger commented 1 year ago

Describe the bug When you log out, all NPCs are removed from the game

To Reproduce Steps to reproduce the behavior:

  1. Run the server, and two instances of the client
  2. Log into the game with both client instances
  3. You will see NPCs around lumby
  4. Log out on one of the clients
  5. The other client will see all NPCs be deleted. They don't come back

Expected behavior Only the player logging out should be removed from the world.

Screenshots image

Additional context Will try to investigate further and see if I can add some insight