1
0
mirror of https://github.com/CFC-Servers/material-editor-tool.git synced 2025-03-04 03:13:00 -05:00

Use ipairs instead of pairs (#6)

This commit is contained in:
Redox 2024-01-14 19:48:14 +01:00 committed by GitHub
parent 9038f4315e
commit bc7ae04c7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ else
table.insert( requestQueue, net.ReadEntity() )
end
for _, ent in pairs( requestQueue ) do
for _, ent in ipairs( requestQueue ) do
if IsValid( ent ) and ent.MaterialData then
syncTable[ply] = syncTable[ply] or {}
table.insert( syncTable[ply], ent )