This commit is contained in:
Sardelka 2022-07-04 09:57:13 +08:00
commit de93af73f2

View File

@ -65,7 +65,7 @@ namespace RageCoop.Client.Scripting
private void SetEntity(CustomEventReceivedArgs obj)
{
Main.QueueAction(() =>
API.QueueAction(() =>
{
var e=Entity.FromHandle((int)obj.Args[0]);
e.Position = (Vector3)obj.Args[1];
@ -75,7 +75,7 @@ namespace RageCoop.Client.Scripting
private void DeleteEntity(CustomEventReceivedArgs e)
{
Entity.FromHandle((int)e.Args[0]).Delete();
API.QueueAction(() => Entity.FromHandle((int)e.Args[0])?.Delete());
}
public override void OnStop()