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