fix: server

This commit is contained in:
cha0s 2021-03-28 10:38:50 -05:00
parent dba763879e
commit a7c121bae8

View File

@ -133,8 +133,10 @@ export default (latus) => class Tool extends Trait {
destroy() {
const {wielder} = this.entity;
this.onWielderChanged(wielder);
this.#primitives.destroy();
this.#throbber = {};
if ('client' === process.env.SIDE) {
this.#primitives.destroy();
this.#throbber = {};
}
}
hotJSON() {