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:
commit
8b730dc543
1 changed files with 3 additions and 0 deletions
|
|
@ -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 ] };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue