Localize various unneeded global variables

This commit is contained in:
Wuzzy 2018-01-26 22:20:15 +01:00
parent a40dec6da9
commit 16bb9b8901
10 changed files with 30 additions and 28 deletions

View file

@ -241,7 +241,7 @@ function mesecon.mvps_push_or_pull(pos, stackdir, movedir, maximum, all_pull_sti
if first_dropper and id >= first_dropper then
break
end
np = vector.add(n.pos, movedir)
local np = vector.add(n.pos, movedir)
minetest.add_node(np, n.node)
minetest.get_meta(np):from_table(n.meta)
end