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

Commit

Permalink
Merge pull request #235 from LuaRook/fix/isedit-permissions
Browse files Browse the repository at this point in the history
fix: fix ``IsEdit`` permissions error
  • Loading branch information
Sleitnick authored Sep 26, 2023
2 parents e6c94bd + aad9142 commit 53095f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if RunService:IsServer() then
return require(script.KnitServer)
else
local KnitServer = script:FindFirstChild("KnitServer")
if KnitServer and not RunService:IsEdit() then
if KnitServer and RunService:IsRunning() then
KnitServer:Destroy()
end
return require(script.KnitClient)
Expand Down

0 comments on commit 53095f7

Please sign in to comment.