fix: destroying alive
This commit is contained in:
parent
6a8e8f410e
commit
66ff06bd2b
|
@ -118,7 +118,7 @@ export default (latus) => class Alive extends decorate(Trait) {
|
||||||
hooks() {
|
hooks() {
|
||||||
return {
|
return {
|
||||||
|
|
||||||
destroy: () => () => this.#hasDied,
|
destroy: () => () => (this.#isDying ? this.#hasDied : true),
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user