mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-16 04:21:25 +01:00
Fix Actionfrequency.fromLine [need to add test cases].
This commit is contained in:
parent
131ad3356f
commit
f044db166b
@ -199,7 +199,7 @@ public class ActionFrequency {
|
||||
final long durBucket = Long.parseLong(split[1]);
|
||||
final long time = Long.parseLong(split[2]);
|
||||
final float[] buckets = new float[split.length -3];
|
||||
if (split.length != buckets.length) throw new RuntimeException("Bad argument length."); // TODO
|
||||
if (split.length - 3 != buckets.length) throw new RuntimeException("Bad argument length."); // TODO
|
||||
for (int i = 3; i < split.length; i ++){
|
||||
buckets[i - 3] = Float.parseFloat(split[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user