Skip to content

Commit

Permalink
Merge pull request #3 from matheustkn/master
Browse files Browse the repository at this point in the history
[Fixed] Load cache from server to client when player join
  • Loading branch information
Patrick2562 authored May 26, 2021
2 parents 45d20e6 + bf86acf commit 59a07c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ end)

addEvent("pAttach:receiveCache", true)
addEventHandler("pAttach:receiveCache", resourceRoot, function(cache)
for element, data in pairs(cache) do
pAttach:attach(element, unpack(data))
for _, data in pairs(cache) do
pAttach:attach(unpack(data))
end
end)

0 comments on commit 59a07c7

Please sign in to comment.