Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix Attachment Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Nov 7, 2023
1 parent 167e453 commit 9cac995
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 12 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Changelog

## 5.3.2

```
- Fix Object Detach
```

## 5.3.1

```
- Fix Object Entity Selection
```

## 5.3.0

```
- Update configs, and resource builder to toml only
- Upgrade item drops to use alt.Object
Expand Down Expand Up @@ -148,7 +156,7 @@ Athena.commands
Equip Namespace
- Used to listen to unequip / equip from specific item types
Athena.systems.inventory.equip.on
Athena.systems.invnetory.equip.invoke
Athena.systems.invnetory.equip.invoke
Basic Authentication
- username/password based login
Expand Down Expand Up @@ -592,7 +600,6 @@ Discord Login
- Starting Sunset of V4/V5 Discord Authentication with External APIs
```


## 4.0.0

```
Expand Down Expand Up @@ -631,7 +638,7 @@ Add sounds to Question Box
RMLUI based menu similar to NativeUI -> AthenaClient.rmlui.menu
Added console command in-client in debug mode: 'rmluicontrols'
Change sprite interface for RMLUI to be 3D only
Fix TextLabel update bug
Fix TextLabel update bug
RMLUI based 3D in-world menu -> AthenaClient.rmlui.menu3D
AthenaClient.webview.page -> A page constructor made easy.
AthenaClient.spinner -> AthenaClient.screen.spinner
Expand Down Expand Up @@ -683,7 +690,7 @@ Created 'example-sprite' plugin for code references.
AthenaClient.camera.target -> Used for the [E] interactions you see in-world
AthenaClient.camera.target.addIgnoredEntity -> Lets you specify an entity handle to ignore interactions with
AthenaClient.camera.target.removeIgnoredEntity -> Lets you specify an entity handle to remove from ignored interactions
Updated Vehicle List -> Now Includes Fuel Types
Updated Vehicle List -> Now Includes Fuel Types
Updated Fuel Stations to Specify Fuel Amount
Interactions now display in-world descriptions
Character Select does switch-out-switch-in
Expand Down Expand Up @@ -812,4 +819,4 @@ Added Athena.events
Fix Weapon Switch Bug
Set All Weapon Ammo to 0 on Weapon Switch
Fix Faction Kick Member Kicking Random User
```
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "altv-athena",
"version": "5.3.1",
"version": "5.3.2",
"description": "a roleplay framework for alt:V",
"author": "stuyk",
"type": "module",
Expand Down
4 changes: 1 addition & 3 deletions src/core/client/streamers/attachable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ const ClientAttachableSystem = {
return;
}

alt.log(`Deleting Attachable for ${entity.id}`);

await ClientAttachableSystem.remove(entity);

delete cache[entity.id];
Expand All @@ -99,7 +97,7 @@ const ClientAttachableSystem = {
continue;
}

const foundObject = alt.Object.all.find((x) => x.id === attachable.entityID);
const foundObject = alt.LocalObject.all.find((x) => x.id === attachable.entityID);
if (typeof foundObject === 'undefined' || foundObject === null || foundObject.valid === false) {
continue;
}
Expand Down

0 comments on commit 9cac995

Please sign in to comment.