OBT/1.2.0(Spring Update)

Sync with Upstream
This commit is contained in:
NotAlwaysTrue
2026-04-25 13:25:41 +08:00
committed by GitHub
parent 5207b381b7
commit 59bc21973a
421 changed files with 24090 additions and 11391 deletions
@@ -106,9 +106,10 @@ namespace Barotrauma
void AddTexturePath(string path)
{
if (string.IsNullOrEmpty(path)) { return; }
var contentPath = ContentPath.FromRaw(characterPrefab.ContentPackage, ragdollParams.Texture);
//if the path contains a gender variable, we can't load it yet because we don't know which gender we need
if (path.Contains("[GENDER]")) { return; }
texturePaths.Add(ContentPath.FromRaw(characterPrefab.ContentPackage, ragdollParams.Texture));
if (contentPath.FullPath.Contains("[GENDER]")) { return; }
texturePaths.Add(contentPath);
}
}
#endif