Fix I O M
This commit is contained in:
@@ -32,13 +32,7 @@ export default function attachmentManager(game: IGame) {
|
||||
} else if (entityRage.type === "vehicle") {
|
||||
var vehicle = game.vehicles.at(entityRage.remoteId);
|
||||
entity = vehicle;
|
||||
var realName = mp.game.ui.getLabelText(mp.game.vehicle.getDisplayNameFromVehicleModel(entityRage.model));
|
||||
} else if (entityRage.type === "object") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
let e = game.attachments.get(entity);
|
||||
@@ -65,7 +59,7 @@ export default function attachmentManager(game: IGame) {
|
||||
rotation: attInfo.rotation
|
||||
};
|
||||
|
||||
game.objects.setData(rageObject, attachmentData); // hier hakt es mein freund
|
||||
game.objects.setData(rageObject, attachmentData);
|
||||
|
||||
let object = game.objects.at(rageObject.remoteId);
|
||||
|
||||
@@ -264,7 +258,6 @@ export default function attachmentManager(game: IGame) {
|
||||
|
||||
if (e != null) {
|
||||
if (e.__attachmentObjects) {
|
||||
//game.wait(2500);
|
||||
attachmentMngr.shutdownFor(entityRage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user