Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions chg_owner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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