mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Minor optimisation
This commit is contained in:
parent
2f32cdf6bb
commit
763510df5b
1 changed files with 1 additions and 2 deletions
|
@ -255,8 +255,7 @@ public class ButterflyEntity extends AmbientEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Variant random(Random rand) {
|
static Variant random(Random rand) {
|
||||||
Variant[] values = values();
|
return VALUES[rand.nextInt(VALUES.length)];
|
||||||
return values[rand.nextInt(values.length)];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue