Skip to content

Commit

Permalink
fix:ore prospector showed aluminium for most ores (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerooni authored Jan 22, 2024
1 parent a23a68c commit 0ca25f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ Version: 1.1.1.a

- fixed the processing array overclocking past its maximum input energy
- fixed a crash when hard redstone recipes are enabled
- removed duplicate fluid drilling rig recipes
- removed duplicate fluid drilling rig recipes
- fixed the ore prospector showing aluminium for most ores
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public void scan(String[][][] storage, LevelChunk chunk) {
if (state.is(oreTag)) {
var itemName = BLOCK_CACHE.computeIfAbsent(state, blockState -> {
var name = BuiltInRegistries.BLOCK.getKey(blockState.getBlock()).toString();
var entry = ChemicalHelper.getOrComputeUnificationEntry(blockState.getBlock());
var entry = ChemicalHelper.getUnificationEntry(blockState.getBlock());
if (entry != null && entry.material != null) {
name = "material_" + entry.material.getName();
name = "material_" + entry.material.toString();
}
return name;
});
Expand Down

0 comments on commit 0ca25f1

Please sign in to comment.