Skip to content

Commit 91be22f

Browse files
authored
Give Delayer its own energy consumption config separate from Proxy (#1641)
Closes #1640
1 parent d022f90 commit 91be22f

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/cyclops/integrateddynamics/GeneralConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public class GeneralConfig extends DummyConfig {
7878
public static int panelLightDynamicBaseConsumption = 0;
7979
@ConfigurableProperty(category = "general", comment = "The base energy usage for the static light panel.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
8080
public static int panelLightStaticBaseConsumption = 0;
81+
@ConfigurableProperty(category = "general", comment = "The base energy usage for the delayer.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
82+
public static int delayerBaseConsumption = 2;
8183
@ConfigurableProperty(category = "general", comment = "The base energy usage for the proxy.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)
8284
public static int proxyBaseConsumption = 2;
8385
@ConfigurableProperty(category = "general", comment = "The base energy usage for the redstone reader.", minimalValue = 0, configLocation = ModConfig.Type.SERVER)

src/main/java/org/cyclops/integrateddynamics/network/DelayNetworkElement.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import net.minecraft.resources.ResourceLocation;
44
import org.cyclops.cyclopscore.datastructure.DimPos;
5+
import org.cyclops.integrateddynamics.GeneralConfig;
56
import org.cyclops.integrateddynamics.Reference;
67

78
/**
@@ -21,4 +22,9 @@ public ResourceLocation getGroup() {
2122
return DelayNetworkElement.GROUP;
2223
}
2324

25+
@Override
26+
public int getConsumptionRate() {
27+
return GeneralConfig.delayerBaseConsumption;
28+
}
29+
2430
}

0 commit comments

Comments
 (0)