Evtl. fix unerklärliche async client fehler
This commit is contained in:
@@ -147,7 +147,7 @@ class RageEntityAttachmentPool implements IEntityAttachmentPool {
|
||||
|
||||
let e = new RageAttachments(entity, attachments, attachmentObjects);
|
||||
this.attachmentPool.push(e);
|
||||
return e;
|
||||
return e;
|
||||
}
|
||||
|
||||
at(remoteId: any): IEntityAttachments {
|
||||
@@ -188,6 +188,10 @@ class RagePlayerPool implements IPlayerPool {
|
||||
fn(new RagePlayer(e));
|
||||
});
|
||||
}
|
||||
|
||||
exists(entity: IPlayer): boolean {
|
||||
return mp.players.exists(entity.id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -280,6 +284,10 @@ class RageVehiclePool implements IVehiclePool {
|
||||
fn(new RageVehicle(e));
|
||||
})
|
||||
}
|
||||
|
||||
exists(entity: IVehicle): boolean {
|
||||
return mp.vehicles.exists(entity.id);
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
@@ -290,5 +298,5 @@ export {
|
||||
RageEntityAttachmentPool,
|
||||
RageVehicle,
|
||||
RageVehiclePool,
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user