Localize variable and correct /armor calculation.

This commit is contained in:
Duane 2016-06-20 22:40:41 -05:00
parent 3d57691431
commit 2b8b604162
3 changed files with 4 additions and 3 deletions

View file

@ -412,7 +412,7 @@ minetest.register_abm({
end
-- Check for soil.
node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 2, z = pos.z})
local node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 2, z = pos.z})
if not node_under
or minetest.get_item_group(node_under.name, "soil") == 0
or (minetest.get_node_light(pos_up, nil) or 99) > fun_caves.light_max then