mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-04-01 17:58:25 +02:00
commit
b855c3dc6d
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user