Browse Source

big: fixed a crash with finding party leaders on rezone

(cherry picked from commit fbf9593bdf)
tags/v0.12.0.23
Shaun 6 months ago
committed by Big Bad Waffle
parent
commit
7845d2bf6f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/server/world/atlas.js

+ 1
- 1
src/server/world/atlas.js View File

@@ -24,7 +24,7 @@ module.exports = {

const partyIds = obj.components.find(c => c.type === 'social')?.party;
if (partyIds) {
const partyLeader = cons.players.find(p => partyIds.includes(p.id) && p.components.find(c => c.type === 'social').isPartyLeader);
const partyLeader = cons.players.find(p => partyIds.includes(p.id) && p.components.find(c => c.type === 'social')?.isPartyLeader);

if (partyLeader?.zoneName === zoneName)
zoneId = partyLeader.zoneId;


Loading…
Cancel
Save