Localize variable and correct /armor calculation.
This commit is contained in:
parent
3d57691431
commit
2b8b604162
3 changed files with 4 additions and 3 deletions
2
abms.lua
2
abms.lua
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue