diff options
Diffstat (limited to '')
| -rw-r--r-- | src/main/Difficulty.java | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/Difficulty.java b/src/main/Difficulty.java index 3dba47b..d8587f1 100644 --- a/src/main/Difficulty.java +++ b/src/main/Difficulty.java @@ -72,6 +72,18 @@ public class Difficulty implements Comparable<Difficulty>              isValid1 = false;          } +        if (bpm == 0.0) +        { +            System.err.println(thisDir+" is missing a bpm"); +            isValid1 = false; +        } + +        if (numBeats == 0) +        { +            System.err.println(thisDir+" is missing the number of beats"); +            isValid1 = false; +        } +          isValid = isValid1;      }  | 
