diff --git a/src/MapLayers/BiomeLayer.ts b/src/MapLayers/BiomeLayer.ts index eeb64b1..5b60673 100644 --- a/src/MapLayers/BiomeLayer.ts +++ b/src/MapLayers/BiomeLayer.ts @@ -130,7 +130,7 @@ export class BiomeLayer extends L.GridLayer { let hillshade = 1.0 const y = project_down ? Math.min(tile.array[x + 1][z + 1].surface, this.y.value) : this.y.value const belowSurface = y < tile.array[x + 1][z + 1].surface - if (tile.array[x + 1][z + 1].terrain < 0){ + if (do_hillshade && tile.array[x + 1][z + 1].terrain < 0){ hillshade = 0.15 } else if (do_hillshade && project_down && !belowSurface) { diff --git a/src/MapLayers/Graticule.ts b/src/MapLayers/Graticule.ts index 0269431..1a28fcc 100644 --- a/src/MapLayers/Graticule.ts +++ b/src/MapLayers/Graticule.ts @@ -74,7 +74,6 @@ export class Graticule extends LayerGroup { var x_line_min = Math.floor(nw.x / distance) * distance var z_line_min = Math.floor(se.y / distance) * distance - console.log(x_line_count + ", " + z_line_count) var lines = new Array(x_line_count + z_line_count) for (var i = 0 ; i <= x_line_count ; i++){ diff --git a/src/components/MainMap.vue b/src/components/MainMap.vue index c2b09eb..11f794c 100644 --- a/src/components/MainMap.vue +++ b/src/components/MainMap.vue @@ -140,7 +140,7 @@ function getPosition(map: L.Map, latlng: L.LatLng) { const pos = crs.project(latlng) pos.y *= -1 - const surface = (loadedDimensionStore.surface_density_function)?.compute(DensityFunction.context((pos.x >> 2) << 2, 0, (pos.y >> 2) << 2)) ?? Number.POSITIVE_INFINITY + const surface = (loadedDimensionStore.surface_density_function)?.compute(DensityFunction.context((pos.x >> 2) << 2, y.value, (pos.y >> 2) << 2)) ?? Number.POSITIVE_INFINITY const pos_y: number = project_down.value ? Math.min(surface, y.value) : y.value return BlockPos.create(pos.x, pos_y, pos.y) @@ -313,7 +313,7 @@ watch(searchStore.structures, () => { - + diff --git a/src/components/YSlider.vue b/src/components/YSlider.vue index 68753d2..e3f7e73 100644 --- a/src/components/YSlider.vue +++ b/src/components/YSlider.vue @@ -25,7 +25,7 @@ defineEmits(['update:y'])