mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
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
@ -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…
Reference in New Issue
Block a user