Fixed accelerator injector ignoring local enabled state
This commit is contained in:
parent
c652797c09
commit
8b97bc7a2c
1 changed files with 5 additions and 1 deletions
|
@ -239,7 +239,11 @@ public class TileEntityAcceleratorCore extends TileEntityAbstractEnergyCoreOrCon
|
||||||
injectionTicks = injectionPeriodTicks;
|
injectionTicks = injectionPeriodTicks;
|
||||||
final int countInjectors = acceleratorSetup.keyInjectors.length;
|
final int countInjectors = acceleratorSetup.keyInjectors.length;
|
||||||
if (indexNextInjector < countInjectors) {
|
if (indexNextInjector < countInjectors) {
|
||||||
onInject(acceleratorSetup.mapInjectors.get(acceleratorSetup.keyInjectors[indexNextInjector]));
|
final Integer controlChannel = acceleratorSetup.keyInjectors[indexNextInjector];
|
||||||
|
final AcceleratorControlParameter acceleratorControlParameter = mapControlParameters.get(controlChannel);
|
||||||
|
if (acceleratorControlParameter == null || acceleratorControlParameter.isEnabled) {
|
||||||
|
onInject(acceleratorSetup.mapInjectors.get(controlChannel));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// invalid setup => force a reset
|
// invalid setup => force a reset
|
||||||
rebootAccelerator(acceleratorSetup,false, true);
|
rebootAccelerator(acceleratorSetup,false, true);
|
||||||
|
|
Loading…
Reference in a new issue