Fixed a bug that was causing players to get stuck logged in

Fixed a bug that would cause players to get stuck in a client crash loop when logging out inside of a POH
Fixed a bug that let players reach objects that shouldn't be reachable
General disconnection reliability improvements
Adjusted the color of global chat for HD mode, the new color is #f1b04c
This commit is contained in:
Ceikry
2023-03-05 11:00:06 +00:00
committed by Ryan
parent c2cb359bf7
commit ff18f69dd0
14 changed files with 91 additions and 151 deletions
@@ -259,7 +259,12 @@ class ScriptProcessor(val entity: Entity) {
targetDestination = when (interactTarget) {
is NPC -> DestinationFlag.ENTITY.getDestination(entity, interactTarget)
is Scenery -> {
val path = Pathfinder.find(entity, interactTarget).points.lastOrNull()
val basicPath = Pathfinder.find(entity, interactTarget)
val path = basicPath.points.lastOrNull()
if (basicPath.isMoveNear) {
target.location
return
}
if (path == null) {
clearScripts(entity)
return