The arrow server can only be created after the bow server's ownership is done. Should be tested.

This commit is contained in:
2026-02-02 19:36:00 +02:00
parent 768ed39abe
commit 57222f0bb0

View File

@@ -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()