chore: early out

This commit is contained in:
cha0s 2019-03-19 11:48:46 -05:00
parent fb19cdfc69
commit 1969657651

View File

@ -33,9 +33,10 @@ class GraphicalBase extends Trait {
}
synchronizePosition() {
if ('position' in this.entity) {
this.entity.container.position = this.entity.position;
if (!('position' in this.entity)) {
return;
}
this.entity.container.position = this.entity.position;
}
listeners() {