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