I was wrong of course
This commit is contained in:
parent
fee05245c9
commit
3c79dbf8c3
1 changed files with 5 additions and 1 deletions
|
@ -85,7 +85,11 @@ public class Configuration {
|
|||
|
||||
int min = (int) dropMap.get("quantityMin");
|
||||
int max = (int) dropMap.get("quantityMax");
|
||||
double chance = (double) dropMap.get("chance");
|
||||
try {
|
||||
double chance = (double) dropMap.get("chance");
|
||||
} catch (ClassCastException e) { // pointlessest error ever
|
||||
double chance = ((Integer) dropMap.get("chance")).doubleValue();
|
||||
}
|
||||
|
||||
drops.add(new Drop(itemStack, min, max, chance));
|
||||
} catch (IllegalArgumentException e) {
|
||||
|
|
Loading…
Reference in a new issue