[Changes] Make sure BCLBiomes do not keep cyclic/order dependant references
This commit is contained in:
parent
abaef11682
commit
29b8e96bbe
12 changed files with 117 additions and 107 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue