summaryrefslogtreecommitdiff
path: root/item_transport.lua
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2021-02-05 18:03:54 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2021-02-05 18:03:54 +0000
commitf0ef43823cb198a3f426d7d1db88d42f5079fbbd (patch)
tree27f0ebea3b8ac8f36eea8fb58d38947fab81e31d /item_transport.lua
parent2294a235826810864c1dbae7db644dfbc4722e6c (diff)
parent17a602a5a1d3b0362152222dc62c102c399ec4a4 (diff)
downloadpipeworks-f0ef43823cb198a3f426d7d1db88d42f5079fbbd.tar
pipeworks-f0ef43823cb198a3f426d7d1db88d42f5079fbbd.tar.gz
pipeworks-f0ef43823cb198a3f426d7d1db88d42f5079fbbd.tar.bz2
pipeworks-f0ef43823cb198a3f426d7d1db88d42f5079fbbd.tar.xz
pipeworks-f0ef43823cb198a3f426d7d1db88d42f5079fbbd.zip
Merge branch 'm_unused_loop_vars' into 'master'
Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations See merge request VanessaE/pipeworks!34
Diffstat (limited to 'item_transport.lua')
-rw-r--r--item_transport.lua4
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)