From 269e7375bf75c4b49ef5b619015b846744356293 Mon Sep 17 00:00:00 2001 From: aesthetic <15858616+aesthetic0001@users.noreply.github.com> Date: Fri, 15 Dec 2023 17:50:16 -0500 Subject: [PATCH] oopsies! --- lib/plugins/entities.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/entities.js b/lib/plugins/entities.js index 52cd2803e..80f2874af 100644 --- a/lib/plugins/entities.js +++ b/lib/plugins/entities.js @@ -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