This commit is contained in:
Mister_Nebula 2021-02-10 20:54:20 +00:00
parent 5690553ba5
commit f423166da9
4 changed files with 1 additions and 11 deletions

View File

@ -13,7 +13,7 @@ namespace QSB.OrbSync.WorldObjects
private bool _initialized;
private Text _debugBoxText;
public override void OnRemoval()
public override void OnRemoval()
=> UnityEngine.Object.Destroy(_debugBoxText.gameObject);
public override void Init(NomaiInterfaceSlot slot, int id)

View File

@ -1,7 +1,6 @@
using OWML.Common;
using QSB.Events;
using QSB.Messaging;
using QSB.SectorSync.WorldObjects;
using QSB.Utility;
using System.Linq;

View File

@ -2,7 +2,6 @@
using QSB.Events;
using QSB.Messaging;
using QSB.QuantumSync;
using QSB.SectorSync.WorldObjects;
using QSB.TranslationSync;
using QSB.TranslationSync.WorldObjects;
using QSB.Utility;

View File

@ -39,10 +39,6 @@ namespace QSB.QuantumSync.WorldObjects
// controlled by another player, dont care that we activate it
return;
}
if (!QSBCore.IsInMultiplayer)
{
return;
}
var id = QSBWorldSync.GetWorldObjects<IQSBQuantumObject>().ToList().IndexOf(this);
// no one is controlling this object right now, request authority
QSBEventManager.FireEvent(EventNames.QSBQuantumAuthority, id, QSBPlayerManager.LocalPlayerId);
@ -56,10 +52,6 @@ namespace QSB.QuantumSync.WorldObjects
// not being controlled by us, don't care if we leave area
return;
}
if (!QSBCore.IsInMultiplayer)
{
return;
}
var id = QSBWorldSync.GetWorldObjects<IQSBQuantumObject>().ToList().IndexOf(this);
// send event to other players that we're releasing authority
QSBEventManager.FireEvent(EventNames.QSBQuantumAuthority, id, 0);