mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-07-08 02:50:34 +02:00
selective disabling of stairsplus groups in inventory
This commit is contained in:
@ -34,7 +34,7 @@ function stairsplus.copytable(orig)
|
||||
return copy
|
||||
end
|
||||
|
||||
function stairsplus:prepare_groups(groups)
|
||||
function stairsplus:prepare_groups(groups, disabled_in_inventory)
|
||||
local result = {}
|
||||
if groups then
|
||||
for k, v in pairs(groups) do
|
||||
@ -46,6 +46,9 @@ function stairsplus:prepare_groups(groups)
|
||||
if not moreblocks.config.stairsplus_in_creative_inventory then
|
||||
result.not_in_creative_inventory = 1
|
||||
end
|
||||
if disabled_in_inventory then
|
||||
result.not_in_creative_inventory = 1
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user