diff --git a/mods/kalite/shop.lua b/mods/kalite/shop.lua index a8cdb86..268ae78 100644 --- a/mods/kalite/shop.lua +++ b/mods/kalite/shop.lua @@ -8,7 +8,10 @@ local denom = { emerald = {"oresplus:emerald", "oresplus:emeraldblock"} } -local function detached_funds(name) +local function detached_funds(name, player_name) + if not player_name then + player_name = name + end return minetest.create_detached_inventory("funds_" .. name, { allow_move = function(inv, from_list, to_list, to_index, count, player) return 0 @@ -49,7 +52,8 @@ local function detached_funds(name) on_take = function(inv, listname, index, stack, player) return stack:get_count() end - }) + }, + player_name) end minetest.register_on_joinplayer(function(player) diff --git a/mods/kalite/wardrobe.lua b/mods/kalite/wardrobe.lua index 99054ec..73eda07 100644 --- a/mods/kalite/wardrobe.lua +++ b/mods/kalite/wardrobe.lua @@ -160,7 +160,8 @@ minetest.register_on_joinplayer(function(player, _) end end end - }) + }, + player:get_player_name()) skin:set_size("main", 1) for _, v in pairs(skin_db) do