Better handle hidenames: true

This commit is contained in:
James Lyne 2020-12-23 03:23:58 +00:00
parent 42cdb8fba7
commit 3e095c0ae9
2 changed files with 2 additions and 1 deletions

View File

@ -523,7 +523,7 @@ export default {
account: player.account || "",
health: player.health || 0,
armor: player.armor || 0,
name: player.name ? sanitizer.sanitize(player.name) : "Steve",
name: player.name ? sanitizer.sanitize(player.name) : "",
sort: player.sort || 0,
hidden: !world,
location: {

View File

@ -126,6 +126,7 @@ export default defineComponent({
margin: 0;
width: 100%;
height: 100%;
min-height: 3.2rem;
}
&.player--hidden {