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

@ -94,7 +94,7 @@ function stairsplus:register_micro(modname, subname, recipeitem, fields)
def.paramtype = "light"
def.paramtype2 = def.paramtype2 or "facedir"
def.on_place = minetest.rotate_node
def.groups = stairsplus:prepare_groups(fields.groups)
def.groups = stairsplus:prepare_groups(fields.groups, moreblocks.config.stairsplus_microblocks_not_in_creative_inventory)
def.description = desc
if fields.drop and not (type(fields.drop) == "table") then
def.drop = modname.. ":micro_" ..fields.drop..alternate