[Changes] Make sure BCLBiomes do not keep cyclic/order dependant references

This commit is contained in:
Frank 2022-11-02 16:48:05 +01:00
parent abaef11682
commit 29b8e96bbe
12 changed files with 117 additions and 107 deletions

View file

@ -85,7 +85,7 @@ public class WeightedList<T> {
* @return {@link T} value.
*/
public T get(RandomSource random) {
if (maxWeight < 1) {
if (maxWeight <= 0) {
return null;
}
float weight = random.nextFloat() * maxWeight;