Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1.     public boolean isPeripheralBlacklisted() {
  2.         if(!Config.CC_ALL_MULTI_PERIPHERALS) {
  3.             return true;
  4.         }
  5.         boolean blacklisted = true;
  6.         ArrayList<IMultiPeripheral> newPeriphs = peripherals;
  7.         for(IMultiPeripheral peripheral : peripherals) {
  8.             if(!isBlacklisted(peripheral)) {
  9.                 blacklisted = false;
  10.                 newPeriphs.add(peripheral);
  11.                 break;
  12.             }
  13.         }
  14.         if(blacklisted) {
  15.             peripherals = newPeriphs;
  16.         }
  17.         return blacklisted;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement