Fix some undeclared global variables

This commit is contained in:
Craig Davison 2014-11-25 20:34:40 +00:00 committed by sfan5
parent 6fb072e5ff
commit 128f0adb24
5 changed files with 19 additions and 20 deletions

View file

@ -106,8 +106,8 @@ minetest.register_abm({
return
end
-- check if there is water nearby
local wet_lvl = minetest.get_item_group(node.name, "wet")
if minetest.find_node_near(pos, 3, {"group:water"}) then
local wet_lvl = minetest.get_item_group(node.name, "wet")
-- if it is dry soil and not base node, turn it into wet soil
if wet_lvl == 0 then
minetest.set_node(pos, {name = wet})