mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix entities not spawning in structures (#8020)
This affects swamp huts, pillager outposts, ocean monuments, and nether fortresses
This commit is contained in:
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())
|
||||
|
||||
Reference in new issue
Block a user