mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Customizable Quantum Entangloporter energy transfer rate
This commit is contained in:
1 parent
a4958ae8c9
commit
36602926dd
4 files changed
+7
-2
No files matched your search
@@ -282,7 +282,8 @@ public class CommonProxy implements IGuiProvider
|
||||
general.allowTransmitterAlloyUpgrade = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AllowTransmitterAlloyUpgrade", true).getBoolean();
|
||||
general.allowChunkloading = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AllowChunkloading", true).getBoolean();
|
||||
general.allowProtection = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AllowProtection", true).getBoolean();
|
||||
general.portableTeleporterDelay = 100;//Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "PortableTeleporterDelay", 0).getInt();
|
||||
general.portableTeleporterDelay = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "PortableTeleporterDelay", 0).getInt();
|
||||
general.quantumEntangloporterEnergyTransfer = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "QuantumEntangloporterEnergyTransfer", 16000000D).getDouble();
|
||||
|
||||
general.blacklistIC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistIC2Power", false).getBoolean();
|
||||
general.blacklistRF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistRFPower", false).getBoolean();
|
||||
|
||||
@@ -73,6 +73,7 @@ public class MekanismConfig
|
||||
public static boolean allowChunkloading;
|
||||
public static boolean allowProtection = true;
|
||||
public static int portableTeleporterDelay;
|
||||
public static double quantumEntangloporterEnergyTransfer;
|
||||
}
|
||||
|
||||
public static class client
|
||||
|
||||
@@ -9,6 +9,7 @@ import mekanism.api.gas.GasStack;
|
||||
import mekanism.api.gas.GasTank;
|
||||
import mekanism.common.PacketHandler;
|
||||
import mekanism.common.Tier;
|
||||
import mekanism.common.config.MekanismConfig.general;
|
||||
import mekanism.common.frequency.Frequency;
|
||||
import mekanism.common.util.InventoryUtils;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -24,7 +25,7 @@ public class InventoryFrequency extends Frequency
|
||||
{
|
||||
public static final String ENTANGLOPORTER = "Entangloporter";
|
||||
|
||||
public static final double MAX_ENERGY = 1000000;
|
||||
public static final double MAX_ENERGY = general.quantumEntangloporterEnergyTransfer;
|
||||
public static final int FLUID_TANK_SIZE = Tier.FluidTankTier.ULTIMATE.output;
|
||||
public static final int GAS_TANK_SIZE = Tier.GasTankTier.ULTIMATE.output;
|
||||
|
||||
|
||||
@@ -81,6 +81,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
dataStream.writeBoolean(general.allowChunkloading);
|
||||
dataStream.writeBoolean(general.allowProtection);
|
||||
dataStream.writeInt(general.portableTeleporterDelay);
|
||||
dataStream.writeDouble(general.quantumEntangloporterEnergyTransfer);
|
||||
|
||||
for(MachineType type : BlockStateMachine.MachineType.getValidMachines())
|
||||
{
|
||||
@@ -177,6 +178,7 @@ public class PacketConfigSync implements IMessageHandler<ConfigSyncMessage, IMes
|
||||
general.allowChunkloading = dataStream.readBoolean();
|
||||
general.allowProtection = dataStream.readBoolean();
|
||||
general.portableTeleporterDelay = dataStream.readInt();
|
||||
general.quantumEntangloporterEnergyTransfer = dataStream.readDouble();
|
||||
|
||||
for(MachineType type : BlockStateMachine.MachineType.getValidMachines())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user