diff --git a/QSB/TransformSync/PlayerSectorEvent.cs b/QSB/TransformSync/PlayerSectorEvent.cs index 2727478c..06516af0 100644 --- a/QSB/TransformSync/PlayerSectorEvent.cs +++ b/QSB/TransformSync/PlayerSectorEvent.cs @@ -11,7 +11,12 @@ namespace QSB.TransformSync public override void SetupListener() { - GlobalMessenger.AddListener(EventNames.QSBSectorChange, Handler); + GlobalMessenger.AddListener(EventNames.QSBSectorChange, Handler); + } + + public override void CloseListener() + { + GlobalMessenger.RemoveListener(EventNames.QSBSectorChange, Handler); } private void Handler(uint netId, QSBSector sector) => SendEvent(CreateMessage(netId, sector));