More v6 grid
This commit is contained in:
parent
509c97a322
commit
1e866e82f4
11
mibpov.js
11
mibpov.js
@ -6,7 +6,7 @@ const MAX_Y_DEFAULT = 31000
|
||||
|
||||
// Draw a grid line every GRID_STEP units
|
||||
const GRID_STEP = 10
|
||||
const GRID_STEP_V6 = 0.2
|
||||
const GRID_STEP_V6 = 0.1
|
||||
|
||||
// Size of the resizing corner
|
||||
const RESIZE_CORNER = 14;
|
||||
@ -232,11 +232,10 @@ function updateAreaVarsFor(noiseType) {
|
||||
if (min_value > max_value) {
|
||||
[min_value, max_value] = [max_value, min_value]
|
||||
}
|
||||
if (biomeMode === "v6") {
|
||||
if (noiseType == "humidity") {
|
||||
min_value = Math.max(0.0, min_value);
|
||||
max_value = Math.min(1.0, max_value);
|
||||
}
|
||||
// v6 humidity is forcefully clamped at 0 and 1
|
||||
if (biomeMode === "v6" && noiseType == "humidity") {
|
||||
min_value = Math.max(0.0, min_value);
|
||||
max_value = Math.min(1.0, max_value);
|
||||
}
|
||||
|
||||
// Update globals
|
||||
|
Loading…
x
Reference in New Issue
Block a user