소스 검색

bug #1915: Fixed an issue causing threads to not be destroyed when rezoning from instanced threads

(cherry picked from commit ce046d40e5)
tags/v0.11.0.2
Shaun 2 년 전
committed by Big Bad Waffle
부모
커밋
8d515afce2
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. +5
    -0
      src/server/world/atlas.js

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

@@ -264,6 +264,11 @@ module.exports = {
rezone: async function (thread, message) {
const { args: { obj, newZone, keepPos = true } } = message;

if (thread.instanced) {
thread.worker.kill();
this.threads.spliceWhere(t => t === thread);
}

//When messages are sent from map threads, they have an id (id of the object in the map thread)
// as well as a serverId (id of the object in the main thread)
const serverId = obj.serverId;


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