From ebed98d85f956f5024e4fa345028a91f7b9cbf2b Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Tue, 17 Nov 2015 00:32:05 +0100 Subject: [PATCH] fix respawn --- src/lib/plugins/respawn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/plugins/respawn.js b/src/lib/plugins/respawn.js index d349504..f2cfecd 100644 --- a/src/lib/plugins/respawn.js +++ b/src/lib/plugins/respawn.js @@ -10,8 +10,8 @@ module.exports.player=function(player) }); player.sendPosition(); player.updateHealth(20); - player.nearbyPlayers=[]; - player.updateAndSpawnNearbyPlayers(); + player.entity.nearbyEntities=[]; + player.entity.updateAndSpawn(); } }); }; \ No newline at end of file