mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Backport some arch comp net changes (#4408)
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com>
This commit is contained in:
@@ -139,9 +139,6 @@ namespace Robust.Server.GameObjects
|
||||
{
|
||||
_networkManager.RegisterNetMessage<MsgEntity>(HandleEntityNetworkMessage);
|
||||
|
||||
// For syncing component deletions.
|
||||
ComponentRemoved += OnComponentRemoved;
|
||||
|
||||
_playerManager.PlayerStatusChanged += OnPlayerStatusChanged;
|
||||
|
||||
_configurationManager.OnValueChanged(CVars.NetLogLateMsg, b => _logLateMsgs = b, true);
|
||||
@@ -168,15 +165,6 @@ namespace Robust.Server.GameObjects
|
||||
return _lastProcessedSequencesCmd[session];
|
||||
}
|
||||
|
||||
private void OnComponentRemoved(RemovedComponentEventArgs e)
|
||||
{
|
||||
if (e.Terminating || !e.BaseArgs.Component.NetSyncEnabled)
|
||||
return;
|
||||
|
||||
if (TryGetComponent(e.BaseArgs.Owner, out MetaDataComponent? meta))
|
||||
meta.LastComponentRemoved = _gameTiming.CurTick;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void SendSystemNetworkMessage(EntityEventArgs message, bool recordReplay = true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user