From c65da2ad03e817447186bda15bdfd34603cb5d36 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sun, 13 Jun 2021 00:40:03 +0100 Subject: [PATCH] Use surface icon for maps named "surface" in nether/end worlds --- src/components/sidebar/WorldListItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/sidebar/WorldListItem.vue b/src/components/sidebar/WorldListItem.vue index 053c60d..78238f8 100644 --- a/src/components/sidebar/WorldListItem.vue +++ b/src/components/sidebar/WorldListItem.vue @@ -81,10 +81,10 @@ export default defineComponent({ if (/(^|_)nether(_|$)/i.test(this.world.name) || (this.world.name == 'DIM-1')) { worldType = 'nether'; - mapType = (map.name == 'nether') ? 'surface' : 'flat'; + mapType = ['surface', 'nether'].includes(map.name) ? 'surface' : 'flat'; } else if (/(^|_)end(_|$)/i.test(this.world.name) || (this.world.name == 'DIM1')) { worldType = 'the_end'; - mapType = (map.name == 'the_end') ? 'surface' : 'flat'; + mapType = ['surface', 'the_end'].includes(map.name) ? 'surface' : 'flat'; } else { worldType = 'world'; mapType = ['surface', 'flat', 'biome', 'cave'].includes(map.name) ? map.name : 'flat';