Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Fix if statement not triggering code correctly and slight clarificati…
Browse files Browse the repository at this point in the history
…on. (#28)

Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com>
  • Loading branch information
Connor-Colenso and GTNH-Colen authored Dec 17, 2022
1 parent a9edfd8 commit b1d0a92
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@ public GT5OreLayerHelper() {
bufferedDims.put(layer, getDims(layer));
}

// ------------------------------
// --- Handling of dimToOreWrapper ---

// Get dims as "Ow,Ne,Ma" etc.
bufferedDims.forEach((oreLayer, dims) -> {
bufferedDims.forEach((veinInfo, dims) -> {
if (dims.equals(oreVeinNotInAnyDim)) {
return;
}

for (String dim : dims.split(",")) {
if (dim.isEmpty()) {
if (!dim.isEmpty()) {
OreDimensionWrapper dimensionOres = dimToOreWrapper.getOrDefault(dim, new OreDimensionWrapper());
dimensionOres.internalDimOreList.add(oreLayer);
dimensionOres.internalDimOreList.add(veinInfo);
dimToOreWrapper.put(dim, dimensionOres);
}
}
Expand All @@ -67,6 +68,7 @@ public GT5OreLayerHelper() {
dimToOreWrapper.get(dim).calculateWeights();
}
});
// --- End of handling for dimToOreWrapper ---
}

public static String getDims(OreLayerWrapper oreLayer) {
Expand Down

0 comments on commit b1d0a92

Please sign in to comment.