fix: only inform informables of d/c
This commit is contained in:
parent
c8ff30d5dc
commit
acdc3f1924
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user