Skip to content
Permalink
Browse files

Stairs: unbind table groups (#2036)

Unbind table groups for base block, stairs, slabs.
  • Loading branch information...
Jat15 authored and SmallJoker committed Jan 31, 2018
1 parent ee6d2f2 commit 5f121b586d5427098febd32dcc7b700d3d240800
Showing with 12 additions and 8 deletions.
  1. +12 −8 mods/stairs/init.lua
@@ -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",
@@ -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",
@@ -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",
@@ -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",

0 comments on commit 5f121b5

Please sign in to comment.
You can’t perform that action at this time.