Minor optimisation

This commit is contained in:
Sollace 2021-08-20 22:22:12 +02:00
parent 2f32cdf6bb
commit 763510df5b

View file

@ -255,8 +255,7 @@ public class ButterflyEntity extends AmbientEntity {
}
static Variant random(Random rand) {
Variant[] values = values();
return values[rand.nextInt(values.length)];
return VALUES[rand.nextInt(VALUES.length)];
}
}
}