Configurable Channel Limits (#295)

* Channel Config Test

* Update AEConfig.java

* userDefinedChannelAmounts

config option added for the dense and normal channel amounts - will need to be refined to match everything but not sure what I would need to do to make it match the other config options

rebound all hard coded checks for channel amounts and linked them to the config options

redefined how the channel amounts are noted in all applicable api integrations
This commit is contained in:
0mega24
2023-07-28 09:26:41 -04:00
committed by GitHub
parent 13ba399418
commit 59c7dd1285
8 changed files with 32 additions and 14 deletions
@@ -43,7 +43,7 @@ public class ChannelInfoProvider implements IPartProbInfoProvider {
}
if (part instanceof PartDenseCableSmart || part instanceof PartCableSmart) {
final int usedChannels;
final int maxChannels = (part instanceof PartDenseCableSmart) ? 32 : 8;
final int maxChannels = (part instanceof PartDenseCableSmart) ? AEConfig.instance().getDenseChannelCapacity() : AEConfig.instance().getNormalChannelCapacity();
if (part.getGridNode().isActive()) {
final NBTTagCompound tmp = new NBTTagCompound();