Filter disabled pucks from free list
This commit is contained in:
@@ -411,8 +411,8 @@ public class Controller {
|
||||
|
||||
public List<Puck> getFreePucks() {
|
||||
List<Puck> ret = new ArrayList<>();
|
||||
for (Puck p : basePlate.getPucks()) {
|
||||
if (p.getDetection() == Detection.Empty ) {
|
||||
for (Puck p : basePlate.getPucks()) {
|
||||
if (!p.isDisabled() && (p.getDetection() == Detection.Empty )) {
|
||||
ret.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user