fix: safe destroy

This commit is contained in:
cha0s 2019-03-21 01:32:59 -05:00
parent 4744df90d9
commit 5078c064f0

View File

@ -22,9 +22,11 @@ class InformedBase extends Trait {
}
destroy() {
if (this._socket) {
delete this._socket.entity;
delete this._socket;
}
}
reduceStateDiffForEntityList(diff, position) {
// Reduce the entity list.