mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-24 19:27:16 +00:00
run safe
This commit is contained in:
parent
8f477c0353
commit
056e4bf284
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using Mirror;
|
||||
using SanAndreasUnity.Utilities;
|
||||
using SanAndreasUnity.Behaviours;
|
||||
|
@ -120,7 +119,7 @@ namespace SanAndreasUnity.Net
|
|||
{
|
||||
if (m_player.OwnedPed != null)
|
||||
{
|
||||
m_player.OwnedPed.Teleport(pos, rot);
|
||||
F.RunExceptionSafe( () => m_player.OwnedPed.Teleport(pos, rot) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue