Merge pull request #215 from mikeprimm/master

Prevent chat balloons being shown when speaking player is not on currently shown world
This commit is contained in:
mikeprimm 2011-06-14 15:59:15 -07:00
commit 8b730dc543

View File

@ -10,6 +10,9 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
if (!playerMarker) {
return;
}
if (player.location.world != dynmap.world) {
return;
}
var popup = me.chatpopups[message.name];
if (!popup) {
popup = { lines: [ message.text ] };