selective disabling of stairsplus groups in inventory

This commit is contained in:
Isidor Zeuner
2018-01-10 13:11:22 +01:00
parent f6e0db21b2
commit 5be8311b0d
7 changed files with 15 additions and 6 deletions

View File

@ -249,7 +249,7 @@ function stairsplus:register_slope(modname, subname, recipeitem, fields)
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.description = desc
def.groups = stairsplus:prepare_groups(fields.groups)
def.groups = stairsplus:prepare_groups(fields.groups, moreblocks.config.stairsplus_slopes_not_in_creative_inventory)
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":slope_" ..fields.drop..alternate
end