Do not copy the 'marble' group into microblocks (#2)

Co-authored-by: Oversword <bionc:oversword.co.uk>
master
Oversword 2021-04-07 23:17:24 +01:00 committed by GitHub
parent 72a8f9e1bf
commit 9da29961b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -21,11 +21,19 @@ then
stairsplus.expect_infinite_stacks = true
end
local do_not_copy_groups = {
wood = true,
stone = true,
wool = true,
tree = true,
marble = true
}
function stairsplus:prepare_groups(groups)
local result = {}
if groups then
for k, v in pairs(groups) do
if k ~= "wood" and k ~= "stone" and k ~= "wool" and k ~= "tree" then
if not do_not_copy_groups[k] then
result[k] = v
end
end