Fix entities not spawning in structures (#8020)

This affects swamp huts, pillager outposts, ocean monuments, and nether fortresses
This commit is contained in:
SizableShrimp authored and GitHub committed 2021-08-18 22:44:26 -07:00
1 parent 12d0f96fc2
commit 9165d4c3a1
2 files changed
+2 -2

No files matched your search

@@ -76,7 +76,7 @@ public class StructureSpawnManager
ImmutableMap.Builder<net.minecraft.world.entity.MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> builder = ImmutableMap.builder();
event.getEntitySpawns().forEach((classification, spawns) -> {
if (!spawns.isEmpty())
builder.put(classification, WeightedRandomList.create());
builder.put(classification, WeightedRandomList.create(spawns));
});
ImmutableMap<MobCategory, WeightedRandomList<MobSpawnSettings.SpawnerData>> entitySpawns = builder.build();
if (!entitySpawns.isEmpty())