From 910bb3fbca1241a80f7c985f1ac5a7396f4270f0 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Sat, 9 Mar 2024 09:51:05 -0300 Subject: [PATCH] added inventory destruction when auto removing --- automobiles_lib/entities.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/automobiles_lib/entities.lua b/automobiles_lib/entities.lua index 0990ccf..53050fd 100644 --- a/automobiles_lib/entities.lua +++ b/automobiles_lib/entities.lua @@ -220,6 +220,7 @@ function automobiles_lib.on_activate(self, staticdata, dtime_s) automobiles_lib.setText(self, self._vehicle_name) if data.remove then + automobiles_lib.destroy_inventory(self) self.object:remove() return end