Clarify vine creeping condition

This commit is contained in:
Wuzzy 2017-08-12 04:14:46 +02:00
parent a64fd0fb66
commit e9c4259c61
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ minetest.register_node("mcl_core:vine", {
local dir = minetest.wallmounted_to_dir(belownode.param2)
local support = vector.add(below, dir)
local supportnode = minetest.get_node(support)
if not minetest.registered_nodes[supportnode.name].walkable then
-- supporting block = walkable + solid
if not minetest.registered_nodes[supportnode.name].walkable and minetest.get_item_group(supportnode.name, "solid") ~= 1 then
minetest.remove_node(below)
end
end