Use generic key mapping function

This commit is contained in:
Astrash
2022-11-25 14:10:07 +11:00
parent 8670c4cdf3
commit 4fdef98bd9
2 changed files with 12 additions and 9 deletions
@@ -17,6 +17,7 @@ public class DefinedBiomeColorMappingTemplate implements ObjectTemplate<ColorMap
@Override
public ColorMapping<Biome> get() {
return () -> MapUtil.convertKeysToInt(map);
var map = MapUtil.mapKeys(this.map, Integer::decode);
return () -> map;
}
}