fix: positionChanged arg order

This commit is contained in:
cha0s 2019-03-19 18:02:22 -05:00
parent daf6eeddc7
commit 53f9b10eee

View File

@ -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);
}
}