Cleaning the code

This commit is contained in:
npx 2016-12-27 23:19:07 +01:00
parent 289d1bc98a
commit bed8ccdf62

View File

@ -208,7 +208,7 @@ function nsspf_register_mycorrhizalmycelium (name, descr, tree)
for dz = -2,1 do for dz = -2,1 do
local pos1 = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz} local pos1 = {x=pos.x+dx, y=pos.y+dy, z=pos.z+dz}
local n = minetest.get_node(pos1).name local n = minetest.get_node(pos1).name
if string.match(n,"mycelium") then -- if the name contains "mycelium" then exit if n and string.match(n,"mycelium") then -- if the name contains "mycelium" then exit
flag = 1 flag = 1
return return
end end