Merge remote-tracking branch 'upstream/master' into develop

This commit is contained in:
EvilFactory
2024-10-31 06:31:11 -03:00
29 changed files with 183 additions and 62 deletions
@@ -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: () =>