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:
parent
a92b889dfa
commit
82c026628a
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue