File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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" : [
You can’t perform that action at this time.
0 commit comments