From 17a602a5a1d3b0362152222dc62c102c399ec4a4 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 5 Feb 2021 17:17:50 +0100 Subject: Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations --- item_transport.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'item_transport.lua') diff --git a/item_transport.lua b/item_transport.lua index 4c179cc..f302bca 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -42,7 +42,7 @@ minetest.register_globalstep(function(dtime) return end tube_item_count = {} - for id, entity in pairs(luaentity.entities) do + for _, entity in pairs(luaentity.entities) do if entity.name == "pipeworks:tubed_item" then local h = minetest.hash_node_position(vector.round(entity._pos)) tube_item_count[h] = (tube_item_count[h] or 0) + 1 @@ -393,7 +393,7 @@ if minetest.get_modpath("mesecons_mvps") then for _, n in ipairs(moved_nodes) do moved[minetest.hash_node_position(n.oldpos)] = vector.subtract(n.pos, n.oldpos) end - for id, entity in pairs(luaentity.entities) do + for _, entity in pairs(luaentity.entities) do if entity.name == "pipeworks:tubed_item" then local pos = entity:get_pos() local rpos = vector.round(pos) -- cgit v1.2.3