Merge remote-tracking branch 'upstream/master' into develop
This commit is contained in:
@@ -274,12 +274,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: () =>
|
||||
|
||||
Reference in New Issue
Block a user