generated from tilera/1710mod
fix: correct ratios
This commit is contained in:
parent
0413e777aa
commit
2a223e8c81
1 changed files with 18 additions and 2 deletions
|
@ -1,14 +1,22 @@
|
||||||
package net.anvilcraft.pccompat;
|
package net.anvilcraft.pccompat;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
import covers1624.powerconverters.api.registry.PowerSystemRegistry;
|
import covers1624.powerconverters.api.registry.PowerSystemRegistry;
|
||||||
import covers1624.powerconverters.api.registry.PowerSystemRegistry.PowerSystem;
|
import covers1624.powerconverters.api.registry.PowerSystemRegistry.PowerSystem;
|
||||||
|
import covers1624.powerconverters.init.PowerSystems;
|
||||||
import cpw.mods.fml.common.Mod;
|
import cpw.mods.fml.common.Mod;
|
||||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import net.anvilcraft.pccompat.tiles.TileEntityUniversalElectricityConsumer;
|
import net.anvilcraft.pccompat.tiles.TileEntityUniversalElectricityConsumer;
|
||||||
import net.anvilcraft.pccompat.tiles.TileEntityUniversalElectricityProducer;
|
import net.anvilcraft.pccompat.tiles.TileEntityUniversalElectricityProducer;
|
||||||
|
|
||||||
@Mod(modid = "pccompat", name = "PC Compat", version = "0.1.0")
|
@Mod(
|
||||||
|
modid = "pccompat",
|
||||||
|
name = "PC Compat",
|
||||||
|
version = "0.1.0",
|
||||||
|
dependencies = "required-after:PowerConverters3"
|
||||||
|
)
|
||||||
public class PCCompat {
|
public class PCCompat {
|
||||||
public static PowerSystem universalElectricityPowerSystem;
|
public static PowerSystem universalElectricityPowerSystem;
|
||||||
|
|
||||||
|
@ -18,13 +26,21 @@ public class PCCompat {
|
||||||
universalElectricityPowerSystem = new PowerSystem(
|
universalElectricityPowerSystem = new PowerSystem(
|
||||||
"Universal Electricity",
|
"Universal Electricity",
|
||||||
"UE",
|
"UE",
|
||||||
2500,
|
400,
|
||||||
new String[] { "LV", "MV", "HV", "EV" },
|
new String[] { "LV", "MV", "HV", "EV" },
|
||||||
new int[] { 60, 120, 240, 480 },
|
new int[] { 60, 120, 240, 480 },
|
||||||
"W"
|
"W"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
try {
|
||||||
|
Field field = PowerSystem.class.getDeclaredField("scaleAmmount");
|
||||||
|
field.setAccessible(true);
|
||||||
|
field.setInt(PowerSystems.powerSystemIndustrialCraft, 4000);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
|
||||||
GameRegistry.registerTileEntity(
|
GameRegistry.registerTileEntity(
|
||||||
TileEntityUniversalElectricityConsumer.class, "universal_electricity_consumer"
|
TileEntityUniversalElectricityConsumer.class, "universal_electricity_consumer"
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue