Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Weird rejoin bug hotfix
Browse files Browse the repository at this point in the history
This change fixes a strange bug with players leaving and rejoining the same server
  • Loading branch information
ThoughtSpinnr authored May 1, 2019
1 parent e7d667b commit 0998b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServerStorage/Aero/Modules/Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function Data.new(name, scope)
-- Get cached 'data' object if available:
local ds = dataStoreService:GetDataStore(name, scope)
local self = dataPool[ds]
if (self) then return self end
if (self and not self._destroyed) then return self end

-- Create new 'data' object:
self = setmetatable({
Expand Down Expand Up @@ -398,4 +398,4 @@ function Data:Init()
end


return Data
return Data

0 comments on commit 0998b9b

Please sign in to comment.