mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Fix some undeclared global variables
This commit is contained in:
parent
6fb072e5ff
commit
128f0adb24
5 changed files with 19 additions and 20 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue