Update ZoningOperations.scala

Rearranging order and priority of conditions
This commit is contained in:
Fate-JH 2024-05-16 23:51:00 -04:00 committed by GitHub
parent 1f2cd9ac07
commit b1e76c84e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3076,8 +3076,10 @@ class ZoningOperations(
setAvatar = true
player.allowInteraction = true
upstreamMessageCount = 0
if (!setAvatar && tplayer.spectator) {
context.self ! SessionActor.SetMode(SpectatorMode) //should reload spectator status
if (tplayer.spectator) {
if (!setAvatar) {
context.self ! SessionActor.SetMode(SpectatorMode) //should reload spectator status
}
} else if (
!account.gm && /* gm's are excluded */
Config.app.game.promotion.active && /* play versus progress system must be active */