File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ minetest.register_abm({
137
137
local above = {x = pos .x , y = pos .y + 1 , z = pos .z }
138
138
local name = minetest .get_node (above ).name
139
139
local nodedef = minetest .registered_nodes [name ]
140
- if nodedef and nodedef .sunlight_propagates and nodedef .liquidtype == " none" and minetest .get_node_light (above ) >= 13 then
140
+ if nodedef and ( nodedef .sunlight_propagates or nodedef . paramtype == " light " ) and nodedef .liquidtype == " none" and minetest .get_node_light (above ) >= 13 then
141
141
if name == " default:snow" or name == " default:snowblock" then
142
142
minetest .set_node (pos , {name = " default:dirt_with_snow" })
143
143
else
@@ -155,7 +155,7 @@ minetest.register_abm({
155
155
local above = {x = pos .x , y = pos .y + 1 , z = pos .z }
156
156
local name = minetest .get_node (above ).name
157
157
local nodedef = minetest .registered_nodes [name ]
158
- if name ~= " ignore" and nodedef and not (nodedef .sunlight_propagates and nodedef .liquidtype == " none" ) then
158
+ if name ~= " ignore" and nodedef and not (( nodedef .sunlight_propagates or nodedef . paramtype == " light " ) and nodedef .liquidtype == " none" ) then
159
159
minetest .set_node (pos , {name = " default:dirt" })
160
160
end
161
161
end
You can’t perform that action at this time.
0 commit comments