Skip to content

Commit 7cf7f87

Browse files
committed
1.0.6b
Made whitelist based on block mappings
1 parent 98e58b1 commit 7cf7f87

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/main/java/io/arona74/crlayers/LayerGenerator.java

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,21 +1049,8 @@ private BlockPos findSurfaceBlock(BlockPos pos) {
10491049
}
10501050

10511051
private boolean canGenerateLayersOn(Block block) {
1052-
return block == Blocks.GRASS_BLOCK ||
1053-
block == Blocks.DIRT ||
1054-
block == Blocks.STONE ||
1055-
block == Blocks.SAND ||
1056-
block == Blocks.GRAVEL ||
1057-
block == Blocks.COBBLESTONE ||
1058-
block == Blocks.MOSSY_COBBLESTONE ||
1059-
block == Blocks.ANDESITE ||
1060-
block == Blocks.DIORITE ||
1061-
block == Blocks.GRANITE ||
1062-
block == Blocks.PODZOL ||
1063-
block == Blocks.MYCELIUM ||
1064-
block == Blocks.COARSE_DIRT ||
1065-
block == Blocks.TERRACOTTA ||
1066-
block.getDefaultState().isIn(net.minecraft.registry.tag.BlockTags.DIRT);
1052+
// Check if the block has a mapping in the config file
1053+
return mappingRegistry.hasMapping(block);
10671054
}
10681055

10691056
private boolean hasWaterNearby(BlockPos surfacePos) {

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"schemaVersion": 1,
33
"id": "crlayers",
4-
"version": "1.0.0",
4+
"version": "1.0.6b",
55
"name": "CR Layers Generator",
66
"description": "Generate Conquest Reforged terrain layers automatically",
77
"authors": [

0 commit comments

Comments
 (0)