diff --git a/chg_owner.lua b/chg_owner.lua index 50abb2e..98d0982 100644 --- a/chg_owner.lua +++ b/chg_owner.lua @@ -52,6 +52,11 @@ apartment.chg_owner = function(panel_pos, pos, category, descr, original_owner, obj:initialize_inventory() obj:update_appearance() end + elseif n.name == "smartshop:storage" and smartshop.api and smartshop.api.get_object then + local obj = smartshop.api.get_object(pos) + obj:initialize_metadata(owner_or_orig) + obj:initialize_inventory() + obj:update_appearance() else -- These does not require special processing local disp_pname = owner or "- vacant -" local disp_descr = descr .. "@" .. category diff --git a/mod.conf b/mod.conf index 75ac3d2..8c85518 100644 --- a/mod.conf +++ b/mod.conf @@ -2,4 +2,4 @@ name = apartment title = Apartment Rental Panels description = Self-service rental panels for players to rent apartments or shops depends = flow -optional_depends = default +optional_depends = default, smartshop