diff --git a/ValheimPlus/GameClasses/Game.cs b/ValheimPlus/GameClasses/Game.cs index ec785ee4..99383fc6 100644 --- a/ValheimPlus/GameClasses/Game.cs +++ b/ValheimPlus/GameClasses/Game.cs @@ -18,7 +18,7 @@ private static void Prefix() { ZRoutedRpc.instance.Register("VPlusConfigSync", new Action(VPlusConfigSync.RPC_VPlusConfigSync)); //Config Sync ZRoutedRpc.instance.Register("VPlusMapSync", new Action(VPlusMapSync.RPC_VPlusMapSync)); //Map Sync - ZRoutedRpc.instance.Register("VPlusMapPinSync", new Action(VPlusMapPinSync.RPC_VPlusMapPinSync)); //Map Pin Sync + ZRoutedRpc.instance.Register("VPlusMapAddPin", new Action(VPlusMapPinSync.RPC_VPlusMapAddPin)); //Map Pin Sync ZRoutedRpc.instance.Register("VPlusAck", new Action(VPlusAck.RPC_VPlusAck)); //Ack } } diff --git a/ValheimPlus/RPC/VPlusMapPinSync.cs b/ValheimPlus/RPC/VPlusMapPinSync.cs index c8da654b..682825b5 100644 --- a/ValheimPlus/RPC/VPlusMapPinSync.cs +++ b/ValheimPlus/RPC/VPlusMapPinSync.cs @@ -11,7 +11,7 @@ public class VPlusMapPinSync /// /// Sync Pin with clients via the server /// - public static void RPC_VPlusMapPinSync(long sender, ZPackage mapPinPkg) + public static void RPC_VPlusMapAddPin(long sender, ZPackage mapPinPkg) { if (ZNet.m_isServer) //Server { @@ -22,7 +22,7 @@ public static void RPC_VPlusMapPinSync(long sender, ZPackage mapPinPkg) foreach(ZNetPeer peer in ZRoutedRpc.instance.m_peers) { if(peer.m_uid != sender) - ZRoutedRpc.instance.InvokeRoutedRPC(peer.m_uid, "VPlusMapPinSync", new object[] { mapPinPkg }); + ZRoutedRpc.instance.InvokeRoutedRPC(peer.m_uid, "VPlusMapAddPin", new object[] { mapPinPkg }); } ZLog.Log($"Sent map pin to all clients"); @@ -78,7 +78,7 @@ public static void SendMapPinToServer(Minimap.PinData pinData, bool keepQuiet = pkg.Write(pinData.m_name); // Pin name pkg.Write(keepQuiet); // Don't shout - ZRoutedRpc.instance.InvokeRoutedRPC(ZRoutedRpc.instance.GetServerPeerID(), "VPlusMapPinSync", new object[] { pkg }); + ZRoutedRpc.instance.InvokeRoutedRPC(ZRoutedRpc.instance.GetServerPeerID(), "VPlusMapAddPin", new object[] { pkg }); ZLog.Log($"Sent map pin {pinData.m_name} to the server");