Fix client-side commands working when they shouldn't

This commit is contained in:
EvilFactory
2022-10-28 15:14:43 -03:00
parent d88a6b5ef0
commit 09979cb4c9
4 changed files with 30 additions and 9 deletions
@@ -1956,8 +1956,8 @@ namespace Barotrauma
#if DEBUG
AddWarning($"You're not permitted to use the command \"{splitCommand[0].ToLowerInvariant()}\". Executing the command anyway because this is a debug build.");
#else
//ThrowError($"You're not permitted to use the command \"{splitCommand[0].ToLowerInvariant()}\"!");
//return;
ThrowError($"You're not permitted to use the command \"{splitCommand[0].ToLowerInvariant()}\"!");
return;
#endif
}
}