added inventory destruction when auto removing

This commit is contained in:
Alexsandro Percy 2024-03-09 09:51:05 -03:00
parent 6747f57cc9
commit 910bb3fbca

View File

@ -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