mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Merge pull request #411 from StrangeOne101/master
Attempted fix biome & region rarity
This commit is contained in:
commit
4a74190241
@ -301,8 +301,8 @@ public interface ProceduralStream<T> extends ProceduralLayer, Interpolated<T> {
|
||||
}
|
||||
|
||||
for (V i : types) {
|
||||
rarityTypes.addMultiple(i, Math.max(1, (IRare.get(i) / totalRarity)));
|
||||
}
|
||||
rarityTypes.addMultiple(i, totalRarity / IRare.get(i));
|
||||
}
|
||||
|
||||
return new SelectionStream<V>(this, rarityTypes);
|
||||
}
|
||||
|
@ -22,6 +22,6 @@ public interface IRare {
|
||||
int getRarity();
|
||||
|
||||
static int get(Object v) {
|
||||
return v instanceof IRare ? ((IRare) v).getRarity() : 1;
|
||||
}
|
||||
return v instanceof IRare ? Math.max(1, ((IRare) v).getRarity()) : 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user