This commit is contained in:
cha0s 2021-01-17 11:18:15 -06:00
parent 7ddeea6efb
commit 440afac5e3

View File

@ -173,13 +173,7 @@ export default () => class Visible extends decorate(Trait) {
this.#container.rotation = this.entity.rotation;
},
traitAdded: (type) => {
if (-1 === [
'visible',
'positioned',
].indexOf(type)) {
return;
}
traitAdded: () => {
this.synchronizePosition();
},
@ -261,7 +255,7 @@ export default () => class Visible extends decorate(Trait) {
}
synchronizePosition() {
if (!this.entity.is('positioned')) {
if (!this.entity.is('Positioned')) {
return;
}
if (!this.#container) {