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
e687318383
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) {
|
||||||
if (!playerMarker) {
|
if (!playerMarker) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (player.location.world != dynmap.world) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var popup = me.chatpopups[message.name];
|
var popup = me.chatpopups[message.name];
|
||||||
if (!popup) {
|
if (!popup) {
|
||||||
popup = { lines: [ message.text ] };
|
popup = { lines: [ message.text ] };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue