mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix remote
This commit is contained in:
parent
8bb86760cd
commit
5cade93cbd
1 changed files with 2 additions and 4 deletions
|
@ -5,11 +5,9 @@ local ref = std.ref
|
|||
local world = std.world
|
||||
|
||||
local cts = std.components
|
||||
local UpdateTransforms = ReplicatedStorage:WaitForChild("UpdateTransforms") :: RemoteEvent
|
||||
local collect = std.collect
|
||||
local stream = collect(UpdateTransforms.OnClientEvent)
|
||||
|
||||
local function syncTransforms()
|
||||
for _, id, cf in stream do
|
||||
for _, id, cf in blink.UpdateTransform.Iter() do
|
||||
local e = ref("server-"..id)
|
||||
local transform = e:get(cts.Transform)
|
||||
if not transform then
|
||||
|
|
Loading…
Reference in a new issue