fix: correct ratios

This commit is contained in:
LordMZTE 2023-06-16 22:36:26 +02:00
parent 0413e777aa
commit 2a223e8c81
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -1,14 +1,22 @@
package net.anvilcraft.pccompat;
import java.lang.reflect.Field;
import covers1624.powerconverters.api.registry.PowerSystemRegistry;
import covers1624.powerconverters.api.registry.PowerSystemRegistry.PowerSystem;
import covers1624.powerconverters.init.PowerSystems;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.anvilcraft.pccompat.tiles.TileEntityUniversalElectricityConsumer;
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 static PowerSystem universalElectricityPowerSystem;
@ -18,13 +26,21 @@ public class PCCompat {
universalElectricityPowerSystem = new PowerSystem(
"Universal Electricity",
"UE",
2500,
400,
new String[] { "LV", "MV", "HV", "EV" },
new int[] { 60, 120, 240, 480 },
"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(
TileEntityUniversalElectricityConsumer.class, "universal_electricity_consumer"
);