Fix exception if initial update has stale logoff for player+chat

This commit is contained in:
Mike Primm 2011-08-15 21:01:59 +08:00 committed by mikeprimm
parent 5b7ad0f4c9
commit c9494a312d

View File

@ -18,6 +18,8 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
return; return;
} }
var player = dynmap.players[message.name]; var player = dynmap.players[message.name];
if (!player)
return;
if (dynmap.world !== player.location.world) { if (dynmap.world !== player.location.world) {
return; return;
} }