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:
2026-04-21 22:17:00 +08:00
parent a92b889dfa
commit 82c026628a
2 changed files with 1 additions and 1 deletions
@@ -192,7 +192,7 @@ export class InventoryItemContainer extends Phaser.GameObjects.Container {
if ( if (
this.surfaceState.surface === target.surface && this.surfaceState.surface === target.surface &&
item.transform.offset.x === target.x && item.transform.offset.x === target.x &&
item.transform.offset.y === target.x && item.transform.offset.y === target.y &&
item.transform.rotation === finalRotation item.transform.rotation === finalRotation
) )
return false; return false;