Skip to content

Commit

Permalink
fix #100 when only select platinum not all recipes works
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed May 24, 2023
1 parent 496d2b6 commit 3b16b15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/mekanism/common/Mekanism.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public class Mekanism
public static Configuration configurationrecipes;

public static Configuration configurationce;
public static String OSMIUMSELECT = "Osmium";

/** Mekanism version number */
public static Version versionNumber = new Version(GRADLE_VERSIONMOD);
Expand Down Expand Up @@ -1511,6 +1512,10 @@ public void init(FMLInitializationEvent event)
proxy.loadConfiguration();
proxy.onConfigSync(false);

if (MekanismConfig.mekce.OreDictPlatinum && !MekanismConfig.mekce.OreDictOsmium) {
OSMIUMSELECT = "Platinum";
}

//Add baby skeleton spawner
if(general.spawnBabySkeletons)
{
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/mekanism/common/Resource.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package mekanism.common;

import static mekanism.common.Mekanism.OSMIUMSELECT;

public enum Resource
{
IRON("Iron"),
GOLD("Gold"),
OSMIUM("Osmium"),
OSMIUM(OSMIUMSELECT),
COPPER("Copper"),
TIN("Tin"),
SILVER("Silver"),
Expand Down

0 comments on commit 3b16b15

Please sign in to comment.