add parts

This commit is contained in:
Minh VU
2024-11-20 07:03:18 +01:00
parent 9188d50741
commit cc920bf6b6
7 changed files with 38 additions and 4 deletions

View File

@@ -66,7 +66,6 @@ public class ConfigurationImpl implements Configuration {
@Override
public void selectPart(PartType chosenPart) {
Category cat_chosenPart = chosenPart.getCategory();
//Vérifier s'il y a des pièces dans la même catégorie, si oui return
for(Part pt: selectedParts){
if(pt.getCategory().equals(cat_chosenPart)){