Merge pull request #389 from misternebula/remove-quantum-logs

Update QSBQuantumObject.cs
This commit is contained in:
_nebula 2021-12-04 00:00:23 +00:00 committed by GitHub
commit ea6f7ab679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,13 +154,11 @@ namespace QSB.QuantumSync.WorldObjects
private void OnEnable(Shape s)
{
//DebugLog.DebugWrite($"{LogName} enable shape {s.name}");
if (IsEnabled)
{
return;
}
DebugLog.DebugWrite($"{LogName}-{Name} enable", MessageType.Success);
IsEnabled = true;
if (!WorldObjectManager.AllReady && !QSBCore.IsHost)
{
@ -180,7 +178,6 @@ namespace QSB.QuantumSync.WorldObjects
private void OnDisable(Shape s)
{
//DebugLog.DebugWrite($"{LogName} disable shape {s.name}");
if (!IsEnabled)
{
return;
@ -191,7 +188,6 @@ namespace QSB.QuantumSync.WorldObjects
return;
}
DebugLog.DebugWrite($"{LogName}-{Name} disable", MessageType.Error);
IsEnabled = false;
if (!WorldObjectManager.AllReady && !QSBCore.IsHost)
{