Fixed chyzman's python code

This commit is contained in:
Auxilor 2021-09-26 17:40:08 +01:00
parent bfec9a26e6
commit af5734202e

View File

@ -39,7 +39,7 @@ public class Buckshot extends EcoEnchant {
double spread = Math.abs(this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "spread-per-level"));
spread *= level;
for (int i = 0; i < number; i += 1) {
for (int i = 0; i < number; i++) {
Vector velocity = event.getProjectile().getVelocity().clone();
velocity.add(new Vector(NumberUtils.randFloat(-spread, spread), NumberUtils.randFloat(-spread, spread), NumberUtils.randFloat(-spread, spread)));