geyser resync info

This commit is contained in:
JohnCorby 2022-01-21 21:54:46 -08:00
parent 4d5d0dbe4f
commit feed84d88d

View File

@ -1,5 +1,4 @@
using Mirror;
using QSB.GeyserSync.Messages;
using QSB.GeyserSync.Messages;
using QSB.Messaging;
using QSB.WorldSync;
@ -13,6 +12,9 @@ namespace QSB.GeyserSync.WorldObjects
AttachedObject.OnGeyserDeactivateEvent += () => HandleEvent(false);
}
public override void SendResyncInfo(uint to) =>
HandleEvent(AttachedObject._isActive);
private void HandleEvent(bool state)
{
if (QSBCore.IsHost)