From af2856db715ca54c06eed5c8d539efc2ba9f6752 Mon Sep 17 00:00:00 2001 From: firealarmss <99303085+firealarmss@users.noreply.github.com> Date: Thu, 4 Jul 2024 19:35:07 -0500 Subject: [PATCH] Use NET_FUNC_ANNOUNCE instead of NET_FUNC_TRANSFER for sending registration and affiliations from FnePeer (#1) --- FnePeer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FnePeer.cs b/FnePeer.cs index 0a587d5..931a779 100644 --- a/FnePeer.cs +++ b/FnePeer.cs @@ -268,7 +268,7 @@ namespace fnecore FneUtils.Write3Bytes(srcId, ref res, 0); FneUtils.Write3Bytes(dstId, ref res, 3); - SendMaster(CreateOpcode(Constants.NET_FUNC_TRANSFER, Constants.NET_ANNC_SUBFUNC_GRP_AFFIL), res, 0, 0, true); + SendMaster(CreateOpcode(Constants.NET_FUNC_ANNOUNCE, Constants.NET_ANNC_SUBFUNC_GRP_AFFIL), res, 0, 0, true); } /// @@ -282,7 +282,7 @@ namespace fnecore FneUtils.Write3Bytes(srcId, ref res, 0); - SendMaster(CreateOpcode(Constants.NET_FUNC_TRANSFER, Constants.NET_ANNC_SUBFUNC_UNIT_REG), res, 0, 0, true); + SendMaster(CreateOpcode(Constants.NET_FUNC_ANNOUNCE, Constants.NET_ANNC_SUBFUNC_UNIT_REG), res, 0, 0, true); } /// @@ -296,7 +296,7 @@ namespace fnecore FneUtils.Write3Bytes(srcId, ref res, 0); - SendMaster(CreateOpcode(Constants.NET_FUNC_TRANSFER, Constants.NET_ANNC_SUBFUNC_UNIT_DEREG), res, 0, 0, true); + SendMaster(CreateOpcode(Constants.NET_FUNC_ANNOUNCE, Constants.NET_ANNC_SUBFUNC_UNIT_DEREG), res, 0, 0, true); } ///