Fixed child count.

This commit is contained in:
Brianna 2019-07-09 11:31:41 -04:00
parent 00423da2ef
commit dbe1f925cc

View File

@ -164,6 +164,6 @@ public class Loot {
public int getChildDropCount() {
if (childDropCountMin == null || childDropCountMax == null) return 0;
return new Random().nextInt(childDropCountMax - childDropCountMax) + childDropCountMin;
return new Random().nextInt(childDropCountMax - min + 1) + childDropCountMin;
}
}