Skip to content

Commit

Permalink
fix: Use better way to find if endpoint is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
bqmb3 committed Jul 29, 2024
1 parent a1ef9b4 commit f8ecb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function F3X.new(init)
end

function EnsureInitialized(self)
if self._endpoint and self._endpoint:IsDescendantOf(game) then return end
if self._endpoint and self._endpoint:FindFirstAncestorOfClass("DataModel") then return end
local init = _G.F3X__init_func or function()
game.Players:Chat(':f3x')
return plr.Backpack:WaitForChild('Building Tools', 1)
Expand Down

0 comments on commit f8ecb7c

Please sign in to comment.