Skip to content

Commit 40957f7

Browse files
Merge branch '1.21.1/dev' into 1.21.1/main
2 parents 4085b61 + a31b343 commit 40957f7

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Java CI - Build on Push
22

33
on:
44
push:
5-
branches: [ main, dev, "1.*" ]
5+
branches: [ main, dev, "1.**" ]
66
workflow_dispatch:
77
inputs:
88
skip_maven_publish:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2101.1.12]
8+
9+
### Added
10+
* Added support for a user defined minimum `y` level to start the surface block scanning from. This allows the scanning to start from a `y` level other than the worlds lowest point.
11+
712
## [2101.1.11]
813

914
### Added

common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClientConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import dev.ftb.mods.ftbchunks.client.map.MapMode;
88
import dev.ftb.mods.ftbchunks.client.minimap.MinimapComponentConfig;
99
import dev.ftb.mods.ftbchunks.client.minimap.components.*;
10+
import dev.ftb.mods.ftblibrary.config.Tristate;
1011
import dev.ftb.mods.ftblibrary.config.manager.ConfigManager;
1112
import dev.ftb.mods.ftblibrary.snbt.config.*;
1213
import net.minecraft.resources.ResourceLocation;
@@ -40,6 +41,8 @@ public interface FTBChunksClientConfig {
4041
IntValue WATER_VISIBILITY = APPEARANCE.addInt("water_visibility", 220, 0, 255).excluded().comment("Advanced option. Water visibility");
4142
IntValue GRASS_DARKNESS = APPEARANCE.addInt("grass_darkness", 50, 0, 255).excluded().comment("Advanced option. Grass darkness");
4243
IntValue FOLIAGE_DARKNESS = APPEARANCE.addInt("foliage_darkness", 50, 0, 255).excluded().comment("Advanced option. Foliage darkness");
44+
BooleanValue USE_CUSTOM_MIN_Y_LEVEL = APPEARANCE.addBoolean("use_custom_min_y_level", false).excluded().comment("Advanced option. Use custom minimum Y level to scan when rendering map");
45+
IntValue CUSTOM_MIN_Y_LEVEL = APPEARANCE.addInt("custom_min_y_level", 0, Short.MIN_VALUE, Short.MAX_VALUE).excluded().comment("Advanced option. Custom minimum Y level to scan when rendering map, used if use_custom_min_y_level is true");
4346

4447
SNBTConfig WAYPOINTS = CONFIG.addGroup("waypoints", 1);
4548
BooleanValue IN_WORLD_WAYPOINTS = WAYPOINTS.addBoolean("in_world_waypoints", true).comment("Show waypoints in world");

common/src/main/java/dev/ftb/mods/ftbchunks/util/HeightUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dev.ftb.mods.ftbchunks.util;
22

33
import dev.ftb.mods.ftbchunks.client.FTBChunksClient;
4+
import dev.ftb.mods.ftbchunks.client.FTBChunksClientConfig;
45
import dev.ftb.mods.ftbchunks.core.BlockStateFTBC;
56
import net.minecraft.core.BlockPos;
67
import net.minecraft.world.level.Level;
@@ -39,7 +40,10 @@ public static int getHeight(Level level, @Nullable ChunkAccess chunkAccess, Bloc
3940
return UNKNOWN;
4041
}
4142

42-
int bottomY = chunkAccess.getMinBuildHeight();
43+
int bottomY = FTBChunksClientConfig.USE_CUSTOM_MIN_Y_LEVEL.get()
44+
? FTBChunksClientConfig.CUSTOM_MIN_Y_LEVEL.get()
45+
: chunkAccess.getMinBuildHeight();
46+
4347
int topY = pos.getY();
4448
boolean hasCeiling = level.dimensionType().hasCeiling();
4549
int currentWaterY = UNKNOWN;

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readable_name=FTB Chunks
88
maven_group=dev.ftb.mods
99
mod_author=FTB Team
1010

11-
mod_version=2101.1.11
11+
mod_version=2101.1.12
1212
minecraft_version=1.21.1
1313

1414
# Deps

0 commit comments

Comments
 (0)