Skip to content

Commit

Permalink
marking unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
celestialorb committed Oct 22, 2024
1 parent e02d184 commit ec55683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ local function update_surface_metrics()

metrics["surfaces"][name]["entities"] = {}
setmetatable(metrics["surfaces"][name]["entities"], { __index = function() return 0 end })
for id, entity in pairs(surface.find_entities_filtered { force = "player" }) do
for _, entity in pairs(surface.find_entities_filtered { force = "player" }) do
metrics["surfaces"][name]["entities"][entity.name] = 1 + metrics["surfaces"][name]["entities"][entity.name]
end
end
Expand Down

0 comments on commit ec55683

Please sign in to comment.