GregHib / void

Lightweight 2011 RuneScape multiplayer server
BSD 3-Clause "New" or "Revised" License
40 stars 19 forks source link

Wilderness level skull doesn't always display #536

Open GregHib opened 1 month ago

GregHib commented 1 month ago

Sometimes when teleporting or logging into wilderness the skull doesn't show (or does and then is cleared). Purely visual, the player is still considered in_wilderness: true and can correctly attack and be attacked.

GregHib commented 2 days ago

Issue was Interfaces.hasOpenOrRootParent was returning false because the gameframe/toplevel interface hadn't been opened due to it being called later in the playerSpawn than player["inWilderness"] = true.

Solved by opening the gameframe before emitting player Spawn event.