From d89c5f45d01f4bf437be8523c68fc32e5261e324 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 20 Mar 2019 22:53:02 -0500 Subject: [PATCH] refactor: d/c handled automatically now :) --- server/game.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/server/game.js b/server/game.js index 2b646bc..362fd21 100644 --- a/server/game.js +++ b/server/game.js @@ -62,18 +62,7 @@ function createMessageListener(avocadoServer, socket) { function createDisconnectionListener(avocadoServer, socket) { const {entity} = socket; return () => { - const nearbyEntities = entity.entitiesToInform(); entityList.removeEntity(entity); - nearbyEntities.forEach((nearbyEntity) => { - if (!('inform' in nearbyEntity)) { - return; - } - nearbyEntity.inform({ - entityList: { - [entity.instanceUuid]: false, - } - }); - }); }; } // Create an entity for a new connection.