Compare commits

...
1 Commits
Author SHA1 Message Date
hypercross 89343c1954 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.
2026-04-21 19:07:04 +08:00
@@ -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;