瀏覽代碼

bug: Fixed lighting efects crashing in some cases

tags/v0.12.0.9^2
Shaun 1 年之前
父節點
當前提交
3227f3a91a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      src/server/clientComponents/lightningEffect.js

+ 6
- 0
src/server/clientComponents/lightningEffect.js 查看文件

@@ -25,6 +25,12 @@ define([
init: function () {
effects.register(this);

if (this.toX === undefined && this.target === undefined) {
this.destroyed = true;

return;
}

let { toX = this.target.x, toY = this.target.y } = this;

const fromX = this.obj.x + ((toX >= this.obj.x) ? 1 : 0);


Loading…
取消
儲存