Skip to content

Commit

Permalink
oopsies!
Browse files Browse the repository at this point in the history
  • Loading branch information
aesthetic0001 authored Dec 15, 2023
1 parent dabb124 commit 269e737
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/plugins/entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ function inject (bot) {
}
} else {
const vehicle = fetchEntity(entityId)
if (!passengers[0]) {
if (!vehicle.passengers) vehicle.passengers = []
if (!passengers[0] && vehicle.passengers[0]) {
const passenger = fetchEntity(vehicle.passengers[0])
if (!passenger) return
passenger.vehicle = null
Expand Down

0 comments on commit 269e737

Please sign in to comment.