瀏覽代碼

another fix for #1325

(cherry picked from commit bdef602fcc)
tags/v0.4.2^2
Big Bad Waffle 4 年之前
父節點
當前提交
5b66770f14
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      src/server/world/map.js

+ 3
- 0
src/server/world/map.js 查看文件

@@ -444,6 +444,9 @@ module.exports = {
canPathFromPos: function (pos) {
const canPath = this.spawn.some(s => {
const path = physics.getPath(pos, s);
if (!path.length)
return true;
const { x, y } = path[path.length - 1];
const isFullPath = (s.x === x && s.y === y);



Loading…
取消
儲存