Fixed Inoculator don't need Bacteria Vector to process #66

This commit is contained in:
marcin212 committed 2017-06-05 21:06:30 +02:00
1 parent dde90817d7
commit dc2c63c856
1 file changed
+3
@@ -104,6 +104,9 @@ public class InoculatorLogic extends ComponentProcess implements IProcess {
if (!serum.isEmpty() && Engineering.getCharges(serum) == 0) {
return new ErrorState(Genetics.proxy.localise("machine.errors.empty.serum.desc"), Genetics.proxy.localise("machine.errors.empty.serum.info"));
}
if (getUtil().isTankEmpty(Inoculator.TANK_VEKTOR)) {
return new ErrorState.InsufficientLiquid(Genetics.proxy.localise("machine.machine.inoculator.errors.insufficient.vector"), Inoculator.TANK_VEKTOR);
}
return super.canWork();
}