Fix clicking on player-markers not switching the map correctly

This commit is contained in:
Lukas Rieger (Blue) 2022-09-02 22:09:12 +02:00
parent d74a5bed0f
commit f5426ceac3
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
3 changed files with 6 additions and 13 deletions

@ -1 +1 @@
Subproject commit 211127e76b0ee193b6c7bc06a1df32aee231aa06
Subproject commit a3de6f91226d827d79093c379c0b9289e4466e8e

View File

@ -74,15 +74,8 @@ export default {
if (this.marker.type === "player") {
if (this.$bluemap.mapViewer.map.data.world !== this.marker.world) {
let matchingMap = null;
for (let map of this.$bluemap.maps) {
if (map.data.world === this.marker.world) {
matchingMap = map;
break;
}
}
if (this.marker.foreign) {
let matchingMap = await this.$bluemap.findPlayerMap(this.marker.playerUuid);
if (!matchingMap) return;
//this.$bluemap.appState.menu.closeAll();

View File

@ -7,17 +7,17 @@ module.exports = {
proxy: {
'/settings.json': {
target: 'http://localhost:8100',
//target: 'https://bluecolored.de/bluemap-dev',
//target: 'https://bluecolored.de/bluemap',
changeOrigin: true,
},
'/maps': {
target: 'http://localhost:8100',
//target: 'https://bluecolored.de/bluemap-dev',
//target: 'https://bluecolored.de/bluemap',
changeOrigin: true,
},
'/assets/playerheads': {
target: 'http://localhost:8100',
//target: 'https://bluecolored.de/bluemap-dev',
//target: 'https://bluecolored.de/bluemap',
changeOrigin: true,
}
}