v1.6.19.1 (Unto the Breach Hotfix 1)

This commit is contained in:
Regalis11
2024-10-31 11:27:32 +02:00
parent c015059218
commit 26ffd2104e
28 changed files with 182 additions and 61 deletions
@@ -273,12 +273,18 @@ namespace Barotrauma
{
if (Character.Controlled == null)
{
NewMessage("No character is selected!", Color.Red);
ThrowError("No character is selected!");
return;
}
if (args.Length == 0)
{
ThrowError("Please give the name or identifier of the item to spawn.");
return;
}
var modifiedArgs = new List<string>(args);
modifiedArgs.Insert(1, "inventory");
TrySpawnItem(modifiedArgs.ToArray());
},
getValidArgs: () =>