This commit is contained in:
Mister_Nebula 2021-01-27 06:48:25 +00:00
parent 6c2a7c2b68
commit 02c2319ec9

View File

@ -16,7 +16,7 @@ namespace QSB.QuantumSync.WorldObjects
var tracker = (AttachedObject as Component).gameObject.AddComponent<OnEnableDisableTracker>(); var tracker = (AttachedObject as Component).gameObject.AddComponent<OnEnableDisableTracker>();
tracker.OnEnableEvent += OnEnable; tracker.OnEnableEvent += OnEnable;
tracker.OnDisableEvent += OnDisable; tracker.OnDisableEvent += OnDisable;
ControllingPlayer = 0; ControllingPlayer = QSBCore.IsServer ? 1u : 0u;
} }
private void OnEnable() private void OnEnable()