fix(sts-like-viewer): correct y-coordinate comparison in

InventoryItemContainer

Fix a bug where the y-coordinate of an item's offset was being
compared against the target's x-coordinate instead of its y-coordinate.
This commit is contained in:
hypercross 2026-04-21 19:07:04 +08:00
parent a92b889dfa
commit 82c026628a
2 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ export class InventoryItemContainer extends Phaser.GameObjects.Container {
if (
this.surfaceState.surface === target.surface &&
item.transform.offset.x === target.x &&
item.transform.offset.y === target.x &&
item.transform.offset.y === target.y &&
item.transform.rotation === finalRotation
)
return false;