Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ParallelSimulation.luau
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ local casts_RayDisplacement = {} :: { [number]: number }
local casts_ID = {} :: { number }
local casts_ID_Index = {} :: { [number]: number }

local casts_FastCastEvents = {} :: { [number]: ModuleScript }
local casts_FastCastEvents = {} :: { [number]: TypeDef.FastCastEvents }

-- Types

Expand Down Expand Up @@ -485,7 +485,7 @@ function ParallelSimulation.Register(cast: any)
casts_ID_Index[id] = #casts_ID

local eventModule = cast.RayInfo.FastCastEventsModule
casts_FastCastEvents[id] = (typeof(eventModule) == "ModuleScript" or (typeof(eventModule) == "Instance" and eventModule:IsA("ModuleScript"))) and require(eventModule) or nil
casts_FastCastEvents[id] = (typeof(eventModule) == "Instance" and eventModule:IsA("ModuleScript")) and require(eventModule) or nil
Comment thread
weenachuangkud marked this conversation as resolved.

local position = GetPositionAtTime(
casts_TotalRunTime[id],
Expand Down Expand Up @@ -958,4 +958,4 @@ function ParallelSimulation.Stop()
end
end

return ParallelSimulation
return ParallelSimulation