Skip to content

Commit 86e4d50

Browse files
committed
fallback to minecraft:plains for unknown biome when querying biome tint
1 parent af697f3 commit 86e4d50

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/net/querz/mcaselector/version/mapping/color/ColorMapping.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public BlockColor getColor(String block, String biome, BitSet state) {
142142
return b.getColor(state);
143143
}
144144
}
145-
return missing.getColor(null);
145+
return null;
146146
}
147147
}
148148

src/main/java/net/querz/mcaselector/version/mapping/generator/ColorConfig.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public BlockColor getColor(String name, String biome, CompoundTag tag) {
7676
BitSet blockState = states.getState(tag);
7777
BlockColor blockColor = colors.getBlockColor(name, blockState);
7878
if ((blockColor.properties & BlockColor.TINTED) > 0) {
79-
return tintCache.getColor(name, biome, blockState);
79+
BlockColor tinted = tintCache.getColor(name, biome, blockState);
80+
return tinted == null ? tintCache.getColor(name, "minecraft:plains", null) : tinted;
8081
}
8182
return blockColor;
8283
}

0 commit comments

Comments
 (0)