mirror of
https://github.com/imezx/Warp.git
synced 2025-04-24 07:00:03 +00:00
fix 1.0.1
This commit is contained in:
parent
2e38eb4d74
commit
3e34c9cce9
5 changed files with 9 additions and 5 deletions
BIN
Warp.rbxm
BIN
Warp.rbxm
Binary file not shown.
|
@ -3,5 +3,5 @@
|
|||
|
||||
# To add a new tool, add an entry to this table.
|
||||
[tools]
|
||||
rojo = "rojo-rbx/rojo@7.2.1"
|
||||
rojo = "rojo-rbx/rojo@7.3.0"
|
||||
wally = "UpliftGames/wally@0.3.2"
|
||||
|
|
|
@ -108,7 +108,7 @@ end
|
|||
|
||||
function ServerProcess.add(Identifier: string, originId: string, ratelimit: Type.rateLimitArg)
|
||||
if not serverQueue[Identifier] then
|
||||
RateLimit.create(originId, ratelimit.maxEntrance, ratelimit.interval)
|
||||
RateLimit.create(originId, ratelimit.maxEntrance or 200, ratelimit.interval or 2)
|
||||
serverQueue[Identifier] = {}
|
||||
unreliableServerQueue[Identifier] = {}
|
||||
serverCallback[Identifier] = {}
|
||||
|
@ -119,6 +119,10 @@ function ServerProcess.add(Identifier: string, originId: string, ratelimit: Type
|
|||
queueInRequest[2][Identifier] = {}
|
||||
queueOutRequest[1][Identifier] = {}
|
||||
queueOutRequest[2][Identifier] = {}
|
||||
|
||||
for _, player: Player in ipairs(Players:GetPlayers()) do
|
||||
task.spawn(initializeEachPlayer, player)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -17,10 +17,10 @@ else
|
|||
require(Client.ClientProcess).start()
|
||||
end
|
||||
|
||||
function Index.Server(Identifier: string): Type.Server
|
||||
function Index.Server(Identifier: string, rateLimit: Type.rateLimitArg?): Type.Server
|
||||
Assert(IsServer, `[Warp]: Calling .Server({Identifier}) on client side (expected server side)`)
|
||||
Assert(typeof(Identifier) == "string", "[Warp]: Identifier must be a string type")
|
||||
return require(Server.Index)(Identifier) :: Type.Server
|
||||
return require(Server.Index)(Identifier, rateLimit) :: Type.Server
|
||||
end
|
||||
function Index.Client(Identifier: string): Type.Client
|
||||
Assert(not IsServer, `[Warp]: Calling .Client({Identifier}) on server side (expected client side)`)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "imezx/warp"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
registry = "https://github.com/UpliftGames/wally-index"
|
||||
realm = "shared"
|
||||
license = "MIT"
|
||||
|
|
Loading…
Reference in a new issue