소스 검색

big: fixed a crash with finding party leaders on rezone

(cherry picked from commit fbf9593bdf)
tags/v0.12.0.23
Shaun 6 달 전
committed by Big Bad Waffle
부모
커밋
7845d2bf6f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/server/world/atlas.js

+ 1
- 1
src/server/world/atlas.js 파일 보기

@@ -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;


불러오는 중...
취소
저장