fix: positionChanged arg order
This commit is contained in:
parent
daf6eeddc7
commit
53f9b10eee
|
@ -33,7 +33,7 @@ class PositionedBase extends Trait {
|
|||
this.entity.x = x;
|
||||
this.entity.y = y;
|
||||
if (positionChanged) {
|
||||
this.entity.emit('positionChanged', entity.position, lastPosition);
|
||||
this.entity.emit('positionChanged', lastPosition, entity.position);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user