(30308f7e4) Fixed players being able to overwrite vanilla content when the vanilla package is not selected

This commit is contained in:
Joonas Rikkonen
2019-04-08 13:35:46 +03:00
parent 1f8b2325ed
commit d28b04ed3b
3 changed files with 17 additions and 13 deletions
@@ -198,6 +198,7 @@ namespace Barotrauma
private void FindTargetHulls()
{
var idCard = character.Inventory.FindItemByIdentifier("idcard");
bool isCurrentHullOK = !HumanAIController.UnsafeHulls.Contains(character.CurrentHull) && !IsForbidden(character.CurrentHull);
targetHulls.Clear();