commit
e3070c9039
@ -139,21 +139,23 @@ export default class LiveAtlasMapDefinition implements LiveAtlasTileLayerOptions
|
|||||||
return this.icon;
|
return this.icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let mapName = this.name.split(/[^a-zA-Z\d]/, 1)[0];
|
||||||
|
|
||||||
switch(this.world.dimension) {
|
switch(this.world.dimension) {
|
||||||
case 'nether':
|
case 'nether':
|
||||||
worldType = 'nether';
|
worldType = 'nether';
|
||||||
mapType = ['surface', 'nether'].includes(this.name) ? 'surface' : 'flat';
|
mapType = ['surface', 'nether'].includes(mapName) ? 'surface' : 'flat';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'end':
|
case 'end':
|
||||||
worldType = 'the_end';
|
worldType = 'the_end';
|
||||||
mapType = ['surface', 'the_end'].includes(this.name) ? 'surface' : 'flat';
|
mapType = ['surface', 'the_end'].includes(mapName) ? 'surface' : 'flat';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'overworld':
|
case 'overworld':
|
||||||
default:
|
default:
|
||||||
worldType = 'world';
|
worldType = 'world';
|
||||||
mapType = ['surface', 'flat', 'biome', 'cave'].includes(this.name) ? this.name : 'flat';
|
mapType = ['surface', 'flat', 'biome', 'cave'].includes(mapName) ? mapName : 'flat';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user