Read ore chance cache first

- Skip the capturing supplier allocation once the chance noise exists
This commit is contained in:
Brian Neumann-Fopiano
2026-09-28 11:38:41 -04:00
parent ec1984949b
commit 066017cdf6
@@ -71,7 +71,10 @@ public class IrisOreGenerator {
return null;
}
CNG chance = chanceCache.aquire(() -> chanceStyle.create(rng, data));
CNG chance = chanceCache.getIfPresent();
if (chance == null) {
chance = chanceCache.aquire(() -> chanceStyle.create(rng, data));
}
if (chance.noise(x, y, z) > threshold) {
return null;