Skip to content

fix(setStored): remove vin from OxVehicle list#246

Merged
Ehbw merged 1 commit into
overextended:mainfrom
FjamZoo:main
Apr 27, 2025
Merged

fix(setStored): remove vin from OxVehicle list#246
Ehbw merged 1 commit into
overextended:mainfrom
FjamZoo:main

Conversation

@FjamZoo

@FjamZoo FjamZoo commented Apr 26, 2025

Copy link
Copy Markdown
Member

Basically this.despawn does not trigger OxVehicle.remove(this.vin) and if we delete an entity without removing it from OxVehicle it tries to respawn it using the old entity and it breaks.

This just changes this,despawn to this.remove which does the same but also calls OxVehicle.remove(this.vin) not sure if it should of been just called directly in despawn, not sure as I couldnt see any use cases for that but I just went the "safe route"

@FjamZoo FjamZoo changed the title fix: remove vin from OxVehicle list fix(setStored): remove vin from OxVehicle list Apr 26, 2025
@Ehbw Ehbw merged commit e73a3c5 into overextended:main Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants