chore: fix lint error for studio editor

This commit is contained in:
Khietsly Tristan 2026-04-22 08:50:59 +07:00
parent 36137ea940
commit f470f74b29
2 changed files with 7 additions and 7 deletions

View file

@ -9,8 +9,8 @@ local Replication = require("./Replication")
local Xor = require("./Util/Xor")
local RunService = game:GetService("RunService")
local Event: RemoteEvent = script.Parent:WaitForChild("Event")
local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent")
local Event: RemoteEvent = script.Parent:WaitForChild("Event") :: RemoteEvent
local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") :: UnreliableRemoteEvent
local deltaT: number, cycle: number = 0, 1 / 61
local writer: Buffer.Writer = Buffer.createWriter()
@ -200,7 +200,7 @@ if RunService:IsClient() then
local connections = eventListeners[remote]
if connections then
for _, connection in connections do
Thread(connection.c, table.unpack(args))
Thread(connection.c :: any, table.unpack(args))
end
end
end

View file

@ -11,9 +11,9 @@ local Xor = require("./Util/Xor")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local Event: RemoteEvent = script.Parent:WaitForChild("Event")
local _repl: RemoteEvent = script.Parent:WaitForChild("_repl")
local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent")
local Event: RemoteEvent = script.Parent:WaitForChild("Event") :: RemoteEvent
local _repl: RemoteEvent = script.Parent:WaitForChild("_repl") :: RemoteEvent
local UnreliableEvent: UnreliableRemoteEvent = script.Parent:WaitForChild("UnreliableEvent") :: UnreliableRemoteEvent
local deltaT: number, cycle: number = 0, 1 / 61
local writer: Buffer.Writer = Buffer.createWriter()
@ -242,7 +242,7 @@ if RunService:IsServer() then
local connections = eventListeners[remote]
if connections then
for _, connection in connections do
Thread(connection.c, player, table.unpack(d))
Thread(connection.c :: any, player, table.unpack(d))
end
end
end