File tree 1 file changed +6
-2
lines changed
games/minimal/mods/default
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1618,7 +1618,9 @@ minetest.register_abm({
1618
1618
local above = {x = pos .x , y = pos .y + 1 , z = pos .z }
1619
1619
local name = minetest .get_node (above ).name
1620
1620
local nodedef = minetest .registered_nodes [name ]
1621
- if nodedef and (nodedef .sunlight_propagates or nodedef .paramtype == " light" ) and nodedef .liquidtype == " none" and minetest .get_node_light (above ) >= 13 then
1621
+ if nodedef and (nodedef .sunlight_propagates or nodedef .paramtype == " light" )
1622
+ and nodedef .liquidtype == " none"
1623
+ and (minetest .get_node_light (above ) or 0 ) >= 13 then
1622
1624
if name == " default:snow" or name == " default:snowblock" then
1623
1625
minetest .set_node (pos , {name = " default:dirt_with_snow" })
1624
1626
else
@@ -1636,7 +1638,9 @@ minetest.register_abm({
1636
1638
local above = {x = pos .x , y = pos .y + 1 , z = pos .z }
1637
1639
local name = minetest .get_node (above ).name
1638
1640
local nodedef = minetest .registered_nodes [name ]
1639
- if name ~= " ignore" and nodedef and not ((nodedef .sunlight_propagates or nodedef .paramtype == " light" ) and nodedef .liquidtype == " none" ) then
1641
+ if name ~= " ignore" and nodedef
1642
+ and not ((nodedef .sunlight_propagates or nodedef .paramtype == " light" )
1643
+ and nodedef .liquidtype == " none" ) then
1640
1644
minetest .set_node (pos , {name = " default:dirt" })
1641
1645
end
1642
1646
end
You can’t perform that action at this time.
0 commit comments