fix: only inform informables of d/c

This commit is contained in:
cha0s 2019-03-20 20:10:50 -05:00
parent c8ff30d5dc
commit acdc3f1924

View File

@ -63,6 +63,9 @@ function createDisconnectionListener(avocadoServer, socket) {
const nearbyEntities = entity.entitiesToInform();
entityList.removeEntity(entity);
nearbyEntities.forEach((nearbyEntity) => {
if (!('inform' in nearbyEntity)) {
return;
}
nearbyEntity.inform({
entityList: {
[entity.instanceUuid]: false,