From 9ac703dd683690cdd01fa3892178aaf15dca78c8 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 27 May 2018 21:09:46 -0600 Subject: [PATCH] local variable --- features/snareweed.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/snareweed.lua b/features/snareweed.lua index ad1a69a..9fab27c 100644 --- a/features/snareweed.lua +++ b/features/snareweed.lua @@ -27,7 +27,7 @@ if dfcaverns.config.snareweed_damage then for _, player in pairs(minetest.get_connected_players()) do local player_pos = player:getpos() -- node player's feet are in this location. local rounded_pos = vector.round(player_pos) - nearby_nodes = minetest.find_nodes_in_area(vector.add(rounded_pos, {x=0, y= -8, z=0}), rounded_pos, {"dfcaverns:snareweed"}) + local nearby_nodes = minetest.find_nodes_in_area(vector.add(rounded_pos, {x=0, y= -8, z=0}), rounded_pos, {"dfcaverns:snareweed"}) for _, node_pos in ipairs(nearby_nodes) do local node = minetest.get_node(node_pos) local distance = player_pos.y - node_pos.y