Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
2jammers committed Jun 18, 2024
1 parent 6148ad9 commit df3a8b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Network/init.luau
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- Credit to Redblox for the original code, this is a bit modified and improved
-- Credit to Redblox for most of the original code, this is a bit modified and improved
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

Expand Down
8 changes: 4 additions & 4 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ local Promise = require(script.Parent.promise)
local Objects = require(script.Objects)

-- Reuse NetworkRoot because it is modified internally based on RunContext
local NetworkRoot = table.freeze({
local NetworkRoot = {
Event = function(name: string, reliable: boolean?)
return Network.Interface.new("Event", name, reliable)
end,
Function = function(name: string, reliable: boolean?)
return Network.Interface.new("Function", name, reliable)
end,
})
}

-- Functions

Expand All @@ -45,7 +45,7 @@ local function GetClient(): Types.Client
end

-- Loads any module that is within the provided parent, and then filtered if a function is given
-- Please note that these modules could load in any order, and that
-- Please note that these modules could load in any order, and that
local function Load(parent: Instance, filter: ((module: ModuleScript) -> boolean)?)
task.defer(function()
for _, module in parent:GetChildren() do
Expand Down Expand Up @@ -97,7 +97,7 @@ export type ClientEvent = Types.ClientEvent

return {
Promise = Promise :: Types.PromiseLib,

Server = GetServer,
Client = GetClient,
Load = Load,
Expand Down

0 comments on commit df3a8b1

Please sign in to comment.