mt-mods / plantlife_modpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imaginary node: default:water

axcore opened this issue · comments

https://github.com/mt-mods/plantlife_modpack/blob/master/dryplants/reedmace.lua refers to a node called default:water which, as far as I can tell, doesn't exist in default even as an alias.

Possibly it should be default:water_source, which is referenced a few lines later.

If you mean this:

if string.find(minetest.get_node({x = pos.x + 1, y = pos.y, z = pos.z }).name, "default:water")
or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z + 1}).name, "default:water")
or string.find(minetest.get_node({x = pos.x - 1, y = pos.y, z = pos.z }).name, "default:water")
or string.find(minetest.get_node({x = pos.x, y = pos.y, z = pos.z - 1}).name, "default:water") then

I think it's to match both default:water_source and default:water_flowing.

Oh dear, somehow I didn't notice the string.find.

Just forget that you ever saw this post.