diff --git a/src/game/state/move.ts b/src/game/state/move.ts index 74d2200..2d0f1bc 100644 --- a/src/game/state/move.ts +++ b/src/game/state/move.ts @@ -867,12 +867,6 @@ export class HeroMover extends ObjectMoverBase { const dx = delta * progress; loopHero.x = dx + from; layer.update(layer); - console.log( - loopHero.x, - loopHero.y, - renderable.x, - renderable.y - ); }, this.moveSpeed, () => { diff --git a/src/plugin/fx/itemDetail.ts b/src/plugin/fx/itemDetail.ts index fd0c4bc..98044c6 100644 --- a/src/plugin/fx/itemDetail.ts +++ b/src/plugin/fx/itemDetail.ts @@ -98,8 +98,9 @@ export class FloorItemDetail implements ILayerGroupRenderExtends { this.blockData.clear(); // 预留blockData - const [x, y] = this.sprite.block.getBlockXY(width, height); - const num = x * y; + this.sprite.block.size(width, height); + const data = this.sprite.block.blockData; + const num = data.width * data.height; for (let i = 0; i <= num; i++) { this.blockData.set(i, new Map()); this.detailData.set(i, new Map()); @@ -159,6 +160,7 @@ export class FloorItemDetail implements ILayerGroupRenderExtends { * @param block 要计算的分块 */ calAllItems(block: Set) { + if (!core.status.thisMap) return; if (this.dirtyBlock.size === 0 || block.size === 0) return; let diff: Record = {}; const before = core.status.hero;