Skip to content

Commit

Permalink
fix(client/bridge): reset item count on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 10, 2024
1 parent 8f565f8 commit ef7295b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/bridge/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ end
local Shops = require 'modules.shops.client'
local Utils = require 'modules.utils.client'
local Weapon = require 'modules.weapon.client'
local Items = require 'modules.items.client'

function client.onLogout()
if not PlayerData.loaded then return end
Expand All @@ -44,6 +45,10 @@ function client.onLogout()
point:remove()
end

for _, v in pairs(Items --[[@as table]]) do
v.count = 0
end

PlayerData.loaded = false
client.drops = nil

Expand Down

0 comments on commit ef7295b

Please sign in to comment.