Skip to content

Commit

Permalink
Custom Stash Label
Browse files Browse the repository at this point in the history
  • Loading branch information
someone005 authored Feb 24, 2024
1 parent be813eb commit 44b0756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1089,12 +1089,14 @@ local function OpenInventory(name, id, other, origin)
end
local maxweight = 1000000
local slots = 50
local label = 'Stash-' .. id
if other then
maxweight = other.maxweight or 1000000
slots = other.slots or 50
label = other.label or label
end
secondInv.name = 'stash-' .. id
secondInv.label = 'Stash-' .. id
secondInv.label = label
secondInv.maxweight = maxweight
secondInv.inventory = {}
secondInv.slots = slots
Expand Down

0 comments on commit 44b0756

Please sign in to comment.