(6736960da) Fixes to name-based item checks that wouldn't work correctly if playing in a language other than English: - Fixed Item.ReadSpawnData failing to find the correct prefab if the client is using a different language than the server, a couple of fixes to name-based item checks. - Fixed extra cargo spawning. - Fixed clients not getting correct ID card tags for the respawn shuttle.

This commit is contained in:
Joonas Rikkonen
2019-06-04 15:36:21 +03:00
parent 1a011971d0
commit f6e6218bb1
4 changed files with 14 additions and 8 deletions
@@ -91,7 +91,7 @@ namespace Barotrauma
public WayPoint(MapEntityPrefab prefab, Rectangle rectangle)
: this (rectangle, Submarine.MainSub)
{
if (prefab.Name.Contains("Spawn"))
if (prefab.Identifier.Contains("spawn"))
{
spawnType = SpawnType.Human;
}