Merge pull request #68

Update Buckshot.java
This commit is contained in:
Will FP 2021-09-23 09:43:08 +01:00 committed by GitHub
commit b855c3dc6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,11 @@ public class Buckshot extends EcoEnchant {
int numberPerLevel = this.getConfig().getInt(EcoEnchants.CONFIG_LOCATION + "amount-per-level");
int number = numberPerLevel * level;
double spread = this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "spread-per-level");
spread *= level;
if (level < this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "maximum-level")) {
spread *= level;
} else {
spread *= this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "maximum-level");
}
for (int i = 0; i < number; i += 1) {