Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit 40c95d6

Browse files
committed
fix(client): default money from defaultshop getting override as nil
1 parent ee3845a commit 40c95d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ self.LoadDefaultShops = function()
6767
shop.AttachmentsCustomiseOnly = ownedshopdata and ownedshopdata.AttachmentsCustomiseOnly
6868
shop.labelname = k..'_'..shopindex
6969
shop.playertoplayer = ownedshopdata and ownedshopdata.playertoplayer
70-
shop.moneytype = ownedshopdata and ownedshopdata.moneytype
70+
shop.moneytype = ownedshopdata and ownedshopdata.moneytype or shop.moneytype
7171
if shop.StoreName and self.temporalspheres[shop.labelname] and type(self.temporalspheres[shop.labelname]) == 'table' and self.temporalspheres[shop.labelname].remove then
7272
self.temporalspheres[shop.labelname]:remove()
7373
elseif shop.StoreName and self.temporalspheres[shop.labelname] and type(self.temporalspheres[shop.StoreName]) == 'number' and shared.target then
@@ -2180,7 +2180,7 @@ self.Handlers = function()
21802180
total = total + tonumber(itemdata[v.data.metadata and v.data.metadata.name or v.data.name].price) * tonumber(v.count)
21812181
end
21822182

2183-
data.type = self.PaymentMethod({amount = total, total = totalamount, type = self.Active.shop.type, name = self.Active.shop.StoreName, money = self.Active?.shop?.moneytype}) or self.Active?.shop?.moneytype or 'money'
2183+
data.type = self.PaymentMethod({amount = total, total = totalamount, type = self.Active.shop.type, name = self.Active.shop.StoreName, money = self.Active?.shop?.moneytype or 'money'}) or self.Active?.shop?.moneytype or 'money'
21842184
if data.type == 'cancel' then return end
21852185
local financedata
21862186
if data.type == 'finance' then

0 commit comments

Comments
 (0)