mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
fix
This commit is contained in:
parent
dc6fe23ff3
commit
90d85dcba1
@ -11,7 +11,12 @@ namespace QSB.TransformSync
|
|||||||
|
|
||||||
public override void SetupListener()
|
public override void SetupListener()
|
||||||
{
|
{
|
||||||
GlobalMessenger<uint, Sector.Name, string>.AddListener(EventNames.QSBSectorChange, Handler);
|
GlobalMessenger<uint, QSBSector>.AddListener(EventNames.QSBSectorChange, Handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void CloseListener()
|
||||||
|
{
|
||||||
|
GlobalMessenger<uint, QSBSector>.RemoveListener(EventNames.QSBSectorChange, Handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Handler(uint netId, QSBSector sector) => SendEvent(CreateMessage(netId, sector));
|
private void Handler(uint netId, QSBSector sector) => SendEvent(CreateMessage(netId, sector));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user