mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 20:42:17 +00:00
Added in a fun little silk touch multiplier config
This commit is contained in:
1 parent
521f7d7853
commit
9eb9eab91d
3 files changed
+4
No files matched your search
@@ -36,6 +36,7 @@ public class MekanismConfig
|
||||
public static double FROM_TE;
|
||||
public static int laserRange;
|
||||
public static double laserEnergyNeededPerHardness;
|
||||
public static double minerSilkMultiplier = 6;
|
||||
}
|
||||
|
||||
public static class client
|
||||
|
||||
@@ -215,6 +215,7 @@ public class CommonProxy
|
||||
general.VOICE_PORT = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "VoicePort", 36123, null, 1, 65535).getInt();
|
||||
//If this is less than 1, upgrades make machines worse. If less than 0, I don't even know.
|
||||
general.maxUpgradeMultiplier = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "UpgradeModifier", 10, null, 1, Integer.MAX_VALUE).getInt();
|
||||
general.minerSilkMultiplier = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MinerSilkMultiplier", 6).getDouble();
|
||||
|
||||
String s = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "EnergyType", "J", null, new String[]{"J", "RF", "MJ", "EU"}).getString();
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeInt(general.VOICE_PORT);
|
||||
dataStream.writeInt(general.maxUpgradeMultiplier);
|
||||
dataStream.writeInt(general.activeType.ordinal());
|
||||
dataStream.writeDouble(general.minerSilkMultiplier);
|
||||
|
||||
dataStream.writeDouble(usage.enrichmentChamberUsage);
|
||||
dataStream.writeDouble(usage.osmiumCompressorUsage);
|
||||
@@ -104,6 +105,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
general.VOICE_PORT = dataStream.readInt();
|
||||
general.maxUpgradeMultiplier = dataStream.readInt();
|
||||
general.activeType = EnergyType.values()[dataStream.readInt()];
|
||||
general.minerSilkMultiplier = dataStream.readDouble();
|
||||
|
||||
general.TO_TE = general.TO_BC*10;
|
||||
general.FROM_TE = general.FROM_BC/10;
|
||||
|
||||
Reference in new issue
Block a user