Fixed crash with admin command
This commit is contained in:
@@ -376,6 +376,8 @@ namespace Barotrauma
|
|||||||
HumanAIController.DisableCrewAI = false;
|
HumanAIController.DisableCrewAI = false;
|
||||||
break;
|
break;
|
||||||
case "admin":
|
case "admin":
|
||||||
|
if (commands.Length < 2) break;
|
||||||
|
|
||||||
if (GameMain.Server != null)
|
if (GameMain.Server != null)
|
||||||
{
|
{
|
||||||
GameMain.Server.AdminAuthPass = commands[1];
|
GameMain.Server.AdminAuthPass = commands[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user