Infinite loop failsafe
This commit is contained in:
1 parent
bf59afefda
commit
8d28f93077
1 file changed
+6
@@ -670,8 +670,14 @@ namespace CalamityMod.World
|
||||
chest = MiscWorldgenRoutines.AddChestWithLoot(x, y, (ushort)ModContent.TileType<RustyChestTile>());
|
||||
}
|
||||
}
|
||||
|
||||
if (attempts >= 5000)
|
||||
break;
|
||||
}
|
||||
|
||||
if (attempts >= 5000)
|
||||
continue;
|
||||
|
||||
// If a chest was placed, force its first item to be the unique item.
|
||||
if (chest != null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user