diff --git a/packages/entity/traits/spawner.trait.js b/packages/entity/traits/spawner.trait.js index 870ad2f..256e95e 100644 --- a/packages/entity/traits/spawner.trait.js +++ b/packages/entity/traits/spawner.trait.js @@ -41,10 +41,17 @@ export class Spawner extends decorate(Trait) { } destinationEntityList() { - if (this.entity.is('listed')) { + if ( + this.entity.is('listed') + && this.entity.list + ) { return this.entity.list; } - if (this.entity.wielder && this.entity.wielder.is('listed')) { + if ( + this.entity.wielder + && this.entity.wielder.is('listed') + && this.entity.wielder.list + ) { return this.entity.wielder.list; } }