mirror of
https://github.com/BlueMap-Minecraft/BlueMapVue.git
synced 2024-11-25 19:05:11 +01:00
Fix playerheads
This commit is contained in:
parent
e6059e9051
commit
ad27cb4211
@ -1 +1 @@
|
|||||||
Subproject commit bdf89ed5b289d821f37a920923bbf80947673714
|
Subproject commit b5cd8989340198464e10af891afa8e4a13565dc5
|
@ -2,7 +2,7 @@
|
|||||||
<div class="marker-item" :class="{'marker-hidden': !marker.visible}">
|
<div class="marker-item" :class="{'marker-hidden': !marker.visible}">
|
||||||
<div class="marker-button" :title="marker.id" @click="click(false)">
|
<div class="marker-button" :title="marker.id" @click="click(false)">
|
||||||
<div class="icon" v-if="marker.type === 'player'">
|
<div class="icon" v-if="marker.type === 'player'">
|
||||||
<img :src="'assets/playerheads/' + marker.playerUuid + '.png'" alt="playerhead" @error="steve">
|
<img :src="'maps/' + mapId + '/live/assets/playerheads/' + marker.playerUuid + '.png'" alt="playerhead" @error="steve">
|
||||||
</div>
|
</div>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<div class="label">{{markerLabel}}</div>
|
<div class="label">{{markerLabel}}</div>
|
||||||
@ -40,6 +40,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
appState: this.$bluemap.appState,
|
appState: this.$bluemap.appState,
|
||||||
controls: this.$bluemap.mapViewer.controlsManager.data,
|
controls: this.$bluemap.mapViewer.controlsManager.data,
|
||||||
|
mapId: this.$bluemap.mapViewer.data.map.id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -121,6 +121,7 @@
|
|||||||
.bm-marker-player {
|
.bm-marker-player {
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
filter: drop-shadow(1px 1px 3px #0008);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
|
@ -14,11 +14,6 @@ module.exports = {
|
|||||||
//target: 'http://localhost:8100',
|
//target: 'http://localhost:8100',
|
||||||
target: 'https://bluecolored.de/bluemap',
|
target: 'https://bluecolored.de/bluemap',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
|
||||||
'/assets/playerheads': {
|
|
||||||
//target: 'http://localhost:8100',
|
|
||||||
target: 'https://bluecolored.de/bluemap',
|
|
||||||
changeOrigin: true,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user