Skip to content

Commit

Permalink
Use player.Iterator() instead of player.GetAll() (Development branch) (
Browse files Browse the repository at this point in the history
…#1364)

* Update part_pool.lua

* Update init.lua
  • Loading branch information
Astralcircle authored Jun 15, 2024
1 parent 264793b commit 32ee247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/pac3/core/client/part_pool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function pac.UnhookEntityRender(ent, part)
end

pac.AddHook("Think", "events", function()
for _, ply in ipairs(player.GetAll()) do
for _, ply in player.Iterator() do
if not ent_parts[ply] then continue end
if pac.IsEntityIgnored(ply) then continue end

Expand Down
2 changes: 1 addition & 1 deletion lua/pac3/editor/client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ do
local up = Vector(0,0,10000)

pac.AddHook("HUDPaint", "in_editor", function()
for _, ply in ipairs(player.GetAll()) do
for _, ply in player.Iterator() do
if ply ~= pac.LocalPlayer and ply:GetNW2Bool("pac_in_editor") then

if showCameras:GetInt() == 1 then
Expand Down

0 comments on commit 32ee247

Please sign in to comment.