Skip to content

Commit

Permalink
Stairs: unbind table groups (#2036)
Browse files Browse the repository at this point in the history
Unbind table groups for base block, stairs, slabs.
  • Loading branch information
Jat15 authored and SmallJoker committed Jan 31, 2018
1 parent ee6d2f2 commit 5f121b5
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions mods/stairs/init.lua
Expand Up @@ -68,15 +68,16 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
end
end
end
groups.stair = 1
local new_groups = table.copy(groups)
new_groups.stair = 1
minetest.register_node(":stairs:stair_" .. subname, {
description = description,
drawtype = "nodebox",
tiles = stair_images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
Expand Down Expand Up @@ -162,15 +163,16 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
end
end
end
groups.slab = 1
local new_groups = table.copy(groups)
new_groups.slab = 1
minetest.register_node(":stairs:slab_" .. subname, {
description = description,
drawtype = "nodebox",
tiles = slab_images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
Expand Down Expand Up @@ -318,15 +320,16 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
end
end
end
groups.stair = 1
local new_groups = table.copy(groups)
new_groups.stair = 1
minetest.register_node(":stairs:stair_inner_" .. subname, {
description = "Inner " .. description,
drawtype = "nodebox",
tiles = stair_images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
Expand Down Expand Up @@ -395,15 +398,16 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
end
end
end
groups.stair = 1
local new_groups = table.copy(groups)
new_groups.stair = 1
minetest.register_node(":stairs:stair_outer_" .. subname, {
description = "Outer " .. description,
drawtype = "nodebox",
tiles = stair_images,
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
groups = groups,
groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
Expand Down

0 comments on commit 5f121b5

Please sign in to comment.