Controller now required for infinite channels

This commit is contained in:
Timo Ley 2021-03-19 11:08:34 +01:00
parent 5a2089941d
commit 404b4dbab9
4 changed files with 20 additions and 16 deletions

View File

@ -41,7 +41,7 @@ pneumaticcraft_version=1.9.15-105
# Self Compiled APIs #
#########################################################
mekansim_version=8.0.1.198
rotarycraft_version=V6e
rotarycraft_version=V6f
#########################################################

View File

@ -32,11 +32,6 @@ repositories {
url "http://mobiusstrip.eu/maven"
}
maven {
name "FireBall API Depot"
url "http://dl.tsr.me/artifactory/libs-release-local"
}
maven {
name = "Player"
url = "http://maven.ic2.player.to/"
@ -47,11 +42,6 @@ repositories {
url = "http://maven.tterrag.com/"
}
maven {
name = "RX14 Proxy"
url = "http://mvn.rx14.co.uk/repo/"
}
maven {
name "OpenComputers Repo"
url = "http://maven.cil.li/"
@ -62,6 +52,11 @@ repositories {
url = "http://maven.k-4u.nl/"
}
maven {
name = "tilera"
url = "https://data.tilera.xyz/maven/"
}
ivy {
name "BuildCraft"
artifactPattern "http://www.mod-buildcraft.com/releases/BuildCraft/[revision]/[module]-[revision]-[classifier].[ext]"
@ -131,7 +126,7 @@ dependencies {
compile "appeng:Waila:${waila_version}_${minecraft_version}:api"
compile "appeng:RotaryCraft:${rotarycraft_version}:api"
compile "appeng:mekanism:${minecraft_version}-${mekansim_version}:api"
compile "appeng:InventoryTweaks:${invtweaks_version}:api"
//compile "appeng:InventoryTweaks:${invtweaks_version}:api"
// self compiled stubs
compile(group: 'api', name: 'coloredlightscore', version: "${api_coloredlightscore_version}")

View File

@ -39,5 +39,10 @@ public enum ControllerState
/**
* Controller rules not followed, lock up while booting.
*/
CONTROLLER_CONFLICT
CONTROLLER_CONFLICT,
/**
* Controller is online and has infinite channels
*/
CONTROLLER_INFINITE
}

View File

@ -83,7 +83,7 @@ public class PathGridCache implements IPathingGrid
this.updateNetwork = false;
this.setChannelsInUse( 0 );
if( !AEConfig.instance.isFeatureEnabled( AEFeature.Channels ) )
if( this.controllerState == ControllerState.CONTROLLER_INFINITE )
{
final int used = this.calculateRequiredChannels();
@ -162,7 +162,7 @@ public class PathGridCache implements IPathingGrid
if( this.active.isEmpty() && this.ticksUntilReady <= 0 )
{
if( this.controllerState == ControllerState.CONTROLLER_ONLINE )
if( this.controllerState == ControllerState.CONTROLLER_ONLINE || this.controllerState == ControllerState.CONTROLLER_INFINITE)
{
final Iterator<TileController> controllerIterator = this.controllers.iterator();
if( controllerIterator.hasNext() )
@ -273,7 +273,11 @@ public class PathGridCache implements IPathingGrid
if( cv.isValid() && cv.getFound() == this.controllers.size() )
{
this.controllerState = ControllerState.CONTROLLER_ONLINE;
if (AEConfig.instance.isFeatureEnabled( AEFeature.Channels )) {
this.controllerState = ControllerState.CONTROLLER_ONLINE;
} else {
this.controllerState = ControllerState.CONTROLLER_INFINITE;
}
}
else
{