mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 21:09:45 +00:00
add config for silicon sync
This commit is contained in:
3 files changed
+7
-2
No files matched your search
@@ -76,6 +76,7 @@ public class MekanismConfig
|
||||
public static boolean EnablePoorOresCompat;
|
||||
public static boolean OreDictOsmium;
|
||||
public static boolean OreDictPlatinum;
|
||||
public static boolean enableSiliconCompat;
|
||||
}
|
||||
|
||||
public static class client
|
||||
|
||||
@@ -1516,9 +1516,11 @@ public class Mekanism
|
||||
}
|
||||
}
|
||||
}
|
||||
if(Loader.isModLoaded("EnderIO") || Loader.isModLoaded("GalacticraftCore") || Loader.isModLoaded("ProjRed|Core"))
|
||||
if (MekanismConfig.general.enableSiliconCompat)
|
||||
{
|
||||
isSiliconLoaded = true;
|
||||
if (Loader.isModLoaded("EnderIO") || Loader.isModLoaded("GalacticraftCore") || Loader.isModLoaded("ProjRed|Core")) {
|
||||
isSiliconLoaded = true;
|
||||
}
|
||||
}
|
||||
//Integrate certain OreDictionary recipes
|
||||
registerOreDict();
|
||||
|
||||
@@ -81,6 +81,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeBoolean(general.EnablePoorOresCompat);
|
||||
dataStream.writeBoolean(general.OreDictOsmium);
|
||||
dataStream.writeBoolean(general.OreDictPlatinum);
|
||||
dataStream.writeBoolean(general.enableSiliconCompat);
|
||||
|
||||
for(MachineType type : MachineType.getValidMachines())
|
||||
{
|
||||
@@ -295,6 +296,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
general.EnablePoorOresCompat = dataStream.readBoolean();
|
||||
general.OreDictOsmium = dataStream.readBoolean();
|
||||
general.OreDictPlatinum = dataStream.readBoolean();
|
||||
general.enableSiliconCompat = dataStream.readBoolean();
|
||||
|
||||
for(MachineType type : MachineType.getValidMachines())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user