mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Remove feature streams from worldmgr
This commit is contained in:
parent
d3ec29aa42
commit
d46351b866
@ -250,15 +250,10 @@ public class IrisWorldManager extends EngineAssignedWorldManager {
|
|||||||
IrisBiome biome = getEngine().getSurfaceBiome(c);
|
IrisBiome biome = getEngine().getSurfaceBiome(c);
|
||||||
IrisRegion region = getEngine().getRegion(c);
|
IrisRegion region = getEngine().getRegion(c);
|
||||||
//@builder
|
//@builder
|
||||||
IrisEntitySpawn v = spawnRandomly(Stream.concat(Stream.concat(
|
IrisEntitySpawn v = spawnRandomly(Stream.concat(getData().getSpawnerLoader()
|
||||||
getData().getSpawnerLoader()
|
.loadAll(getDimension().getEntitySpawners())
|
||||||
.loadAll(getDimension().getEntitySpawners())
|
.shuffleCopy(RNG.r).stream()
|
||||||
.shuffleCopy(RNG.r).stream()
|
.filter(this::canSpawn)
|
||||||
.filter(this::canSpawn),
|
|
||||||
getData().getSpawnerLoader().streamAll(getEngine().getMantle()
|
|
||||||
.forEachFeature(c).stream()
|
|
||||||
.flatMap((o) -> o.getFeature().getEntitySpawners().stream()))
|
|
||||||
.filter(this::canSpawn))
|
|
||||||
.filter((i) -> i.isValid(biome))
|
.filter((i) -> i.isValid(biome))
|
||||||
.flatMap((i) -> stream(i, initial)),
|
.flatMap((i) -> stream(i, initial)),
|
||||||
Stream.concat(getData().getSpawnerLoader()
|
Stream.concat(getData().getSpawnerLoader()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user