Entity creation performance improvements (#2911)

This commit is contained in:
Pieter-Jan Briers
2022-06-06 14:49:36 +02:00
committed by GitHub
parent 3941930c2f
commit 832672149b
25 changed files with 398 additions and 131 deletions

View File

@@ -123,7 +123,7 @@ namespace Robust.Client.Console
if (AvailableCommands.ContainsKey(commandName))
{
#if !DEBUG
#if FULL_RELEASE
var playerManager = IoCManager.Resolve<IPlayerManager>();
if (!_conGroup.CanCommand(commandName) && playerManager.LocalPlayer?.Session.Status > SessionStatus.Connecting)
{