From 57222f0bb0c61376b0690fa47bcc1883316744f5 Mon Sep 17 00:00:00 2001 From: jee7 Date: Mon, 2 Feb 2026 19:36:00 +0200 Subject: [PATCH] The arrow server can only be created after the bow server's ownership is done. Should be tested. --- .../TwoHandedBow/TwoHandedBowNetworkManager.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Assets/_PROJECT/Components/TwoHandedBow/TwoHandedBowNetworkManager.cs b/Assets/_PROJECT/Components/TwoHandedBow/TwoHandedBowNetworkManager.cs index 2aba689f..2c0b9d65 100644 --- a/Assets/_PROJECT/Components/TwoHandedBow/TwoHandedBowNetworkManager.cs +++ b/Assets/_PROJECT/Components/TwoHandedBow/TwoHandedBowNetworkManager.cs @@ -29,7 +29,15 @@ namespace _PROJECT.Multiplayer.NewBow if (_notch == null) Debug.LogError("Notch not found"); - CreateArrowServer(); + //CreateArrowServer(); + } + + public override void OnOwnershipServer(NetworkConnection prevOwner) + { + base.OnOwnershipServer(prevOwner); + + if (Owner.IsValid) + CreateArrowServer(); } public override void OnStartClient()