Skip to content

Commit

Permalink
Skip saving in load_player
Browse files Browse the repository at this point in the history
  • Loading branch information
nezuo committed Jan 1, 2024
1 parent 6b9d136 commit 91060d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zap/src/output/luau/server.luau
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ end
local player_map = {}

local function load_player(player: Player)
if not player_map[player] then
player_map[player] = {
if player_map[player] then
load(player_map[player])
else
load({
buff = buffer.create(64),
used = 0,
size = 64,
inst = {},
}
})
end

load(player_map[player])
end

Players.PlayerRemoving:Connect(function(player)
Expand Down

0 comments on commit 91060d9

Please sign in to comment.