Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean isPeripheralBlacklisted() {
- if(!Config.CC_ALL_MULTI_PERIPHERALS) {
- return true;
- }
- boolean blacklisted = true;
- ArrayList<IMultiPeripheral> newPeriphs = peripherals;
- for(IMultiPeripheral peripheral : peripherals) {
- if(!isBlacklisted(peripheral)) {
- blacklisted = false;
- newPeriphs.add(peripheral);
- break;
- }
- }
- if(blacklisted) {
- peripherals = newPeriphs;
- }
- return blacklisted;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement