diff options
author | HybridDog <ovvv@web.de> | 2021-02-05 17:17:50 +0100 |
---|---|---|
committer | HybridDog <ovvv@web.de> | 2021-02-05 17:17:50 +0100 |
commit | 17a602a5a1d3b0362152222dc62c102c399ec4a4 (patch) | |
tree | 27f0ebea3b8ac8f36eea8fb58d38947fab81e31d /item_transport.lua | |
parent | 2294a235826810864c1dbae7db644dfbc4722e6c (diff) | |
download | pipeworks-17a602a5a1d3b0362152222dc62c102c399ec4a4.tar pipeworks-17a602a5a1d3b0362152222dc62c102c399ec4a4.tar.gz pipeworks-17a602a5a1d3b0362152222dc62c102c399ec4a4.tar.bz2 pipeworks-17a602a5a1d3b0362152222dc62c102c399ec4a4.tar.xz pipeworks-17a602a5a1d3b0362152222dc62c102c399ec4a4.zip |
Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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) |