fixed a crash when calling Jumpscare when not host

This commit is contained in:
2023-03-15 08:54:03 +01:00
parent f56b26cdb3
commit 25622d70ec

View File

@@ -45,6 +45,12 @@ namespace DevourClient.Helpers
public void Jumpscare() public void Jumpscare()
{ {
if (!BoltNetwork.IsServer)
{
MelonLogger.Msg("You need to be server !");
return;
}
if (p_GameObject == null) if (p_GameObject == null)
{ {
return; return;