Skip to content

Commit

Permalink
fix an issue recipes disappeared when not in English (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
iouter authored Feb 15, 2022
1 parent 53f7f8c commit 903d4d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/witchinggadgets/common/WGContent.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ private static void initClusters(){

while (entries.hasNext()) {
Map.Entry<String, Materials> entry = entries.next();
if (!b.contains(entry.getValue().mLocalizedName) && !OreDictionary.getOres("ore"+entry.getValue().mLocalizedName.replaceAll(" ", "")).isEmpty()) {
if (!b.contains(entry.getValue().mDefaultLocalName) && !OreDictionary.getOres("ore"+entry.getValue().mDefaultLocalName.replaceAll(" ", "")).isEmpty()) {
Integer rgb = ((entry.getValue().getRGBA()[0]&0x0ff) << 16) | ((entry.getValue().getRGBA()[1]&0x0ff) << 8) | (entry.getValue().getRGBA()[2]&0x0ff);
L.add(entry.getValue().mLocalizedName.replaceAll(" ", ""));
GT_Cluster_Color.put(entry.getValue().mLocalizedName.replaceAll(" ", ""), new Integer[]{ClientUtilities.getVibrantColourToInt(rgb), entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[2]&&entry.getValue().getRGBA()[1]>entry.getValue().getRGBA()[2]?2 :entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[1]&&entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[2]?1 : 0});
ClusterEBF.put(entry.getValue().mLocalizedName.replaceAll(" ", ""), entry.getValue().mBlastFurnaceRequired);
L.add(entry.getValue().mDefaultLocalName.replaceAll(" ", ""));
GT_Cluster_Color.put(entry.getValue().mDefaultLocalName.replaceAll(" ", ""), new Integer[]{ClientUtilities.getVibrantColourToInt(rgb), entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[2]&&entry.getValue().getRGBA()[1]>entry.getValue().getRGBA()[2]?2 :entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[1]&&entry.getValue().getRGBA()[0]>entry.getValue().getRGBA()[2]?1 : 0});
ClusterEBF.put(entry.getValue().mDefaultLocalName.replaceAll(" ", ""), entry.getValue().mBlastFurnaceRequired);
if (!entry.getValue().mBlastFurnaceRequired && (entry.getValue().getMolten(144) != null || entry.getValue().getFluid(144) != null) )
if (entry.getValue().getMolten(144) != null )
ClusterSmeltable.put(entry.getValue().mLocalizedName.replaceAll(" ", ""), entry.getValue().getMolten(288).getFluid());
Expand Down

0 comments on commit 903d4d4

Please sign in to comment.