forked from mirror/BlueMap
Fix a bug that prevents map changing via url and add sky color to dimensions
This commit is contained in:
parent
275076bf66
commit
54acd321f9
@ -136,6 +136,9 @@ maps: [
|
||||
name: "End"
|
||||
world: "world_the_end"
|
||||
|
||||
# We dont want a blue sky in the end
|
||||
skyColor: "#080010"
|
||||
|
||||
# In the end is no sky-light, so we need to enable this or we won't see anything.
|
||||
renderCaves: true
|
||||
|
||||
@ -149,6 +152,8 @@ maps: [
|
||||
name: "Nether"
|
||||
world: "world_nether"
|
||||
|
||||
skyColor: "#290000"
|
||||
|
||||
renderCaves: true
|
||||
ambientLight: 0.6
|
||||
|
||||
|
@ -135,6 +135,9 @@ maps: [
|
||||
name: "End"
|
||||
world: "world/DIM1"
|
||||
|
||||
# We dont want a blue sky in the end
|
||||
skyColor: "#080010"
|
||||
|
||||
# In the end is no sky-light, so we need to enable this or we won't see anything.
|
||||
renderCaves: true
|
||||
|
||||
@ -148,6 +151,8 @@ maps: [
|
||||
name: "Nether"
|
||||
world: "world/DIM-1"
|
||||
|
||||
skyColor: "#290000"
|
||||
|
||||
renderCaves: true
|
||||
ambientLight: 0.6
|
||||
|
||||
|
@ -110,6 +110,8 @@ export default class BlueMap {
|
||||
}
|
||||
|
||||
changeMap(map) {
|
||||
if (this.debugInfo) console.debug("changing map: ", map);
|
||||
|
||||
if (this.map === map) return;
|
||||
|
||||
if (this.hiresTileManager !== undefined) this.hiresTileManager.close();
|
||||
@ -163,7 +165,7 @@ export default class BlueMap {
|
||||
loadLocationHash() {
|
||||
let hashVars = window.location.hash.substring(1).split(':');
|
||||
if (hashVars.length >= 1){
|
||||
if (this.settings[hashVars[0]] !== undefined && this.map !== hashVars[0]){
|
||||
if (this.settings.maps[hashVars[0]] !== undefined && this.map !== hashVars[0]){
|
||||
this.changeMap(hashVars[0]);
|
||||
}
|
||||
}
|
||||
|
@ -131,6 +131,9 @@ maps: [
|
||||
name: "End"
|
||||
world: "world/DIM1"
|
||||
|
||||
# We dont want a blue sky in the end
|
||||
skyColor: "#080010"
|
||||
|
||||
# In the end is no sky-light, so we need to enable this or we won't see anything.
|
||||
renderCaves: true
|
||||
|
||||
@ -144,6 +147,8 @@ maps: [
|
||||
name: "Nether"
|
||||
world: "world/DIM-1"
|
||||
|
||||
skyColor: "#290000"
|
||||
|
||||
renderCaves: true
|
||||
ambientLight: 0.6
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user