fix compile errors
This commit is contained in:
@@ -338,21 +338,6 @@ namespace Barotrauma
|
|||||||
|
|
||||||
luaAddedCommand.Add(cmd);
|
luaAddedCommand.Add(cmd);
|
||||||
DebugConsole.Commands.Add(cmd);
|
DebugConsole.Commands.Add(cmd);
|
||||||
|
|
||||||
#if SERVER
|
|
||||||
foreach (var client in GameMain.Server.ConnectedClients) {
|
|
||||||
var index = client.PermittedConsoleCommands.FindIndex((pc) => pc.names[0] == cmd.names[0]);
|
|
||||||
if (index > -1) {
|
|
||||||
client.PermittedConsoleCommands[index] = cmd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach (var permissions in GameMain.Server.ServerSettings.ClientPermissions) {
|
|
||||||
var index = permissions.PermittedCommands.FindIndex((pc) => pc.names[0] == cmd.names[0]);
|
|
||||||
if (index > -1) {
|
|
||||||
permissions.PermittedCommands[index] = cmd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<DebugConsole.Command> Commands => DebugConsole.Commands;
|
public List<DebugConsole.Command> Commands => DebugConsole.Commands;
|
||||||
|
|||||||
Reference in New Issue
Block a user