소스 검색

bug #1915: Fixed noit being able to log yourself out if you are in an instanced zone

tags/v0.11.0
Shaun 2 년 전
부모
커밋
4646f86635
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +2
    -2
      src/server/security/connections.js
  2. +2
    -2
      src/server/world/atlas.js

+ 2
- 2
src/server/security/connections.js 파일 보기

@@ -129,8 +129,8 @@ module.exports = {
continue;

if (p.auth.username === exclude.auth.username) {
if (p.name && p.zoneName)
await atlas.forceSavePlayer(p.name, p.zoneName);
if (p.name && p.zoneId)
await atlas.forceSavePlayer(p.name, p.zoneId);

p.socket.emit('dc', {});
}


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

@@ -314,8 +314,8 @@ module.exports = {
});
},

forceSavePlayer: async function (playerName, zoneName) {
const thread = this.getThreadFromName(zoneName);
forceSavePlayer: async function (playerName, zoneId) {
const thread = this.threads.find(t => t.id === zoneId);

if (!thread)
return;


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