mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
Stairs: unbind table groups (#2036)
Unbind table groups for base block, stairs, slabs.
This commit is contained in:
parent
ee6d2f2468
commit
5f121b586d
@ -68,7 +68,8 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
groups.stair = 1
|
local new_groups = table.copy(groups)
|
||||||
|
new_groups.stair = 1
|
||||||
minetest.register_node(":stairs:stair_" .. subname, {
|
minetest.register_node(":stairs:stair_" .. subname, {
|
||||||
description = description,
|
description = description,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -76,7 +77,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = new_groups,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -162,7 +163,8 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
groups.slab = 1
|
local new_groups = table.copy(groups)
|
||||||
|
new_groups.slab = 1
|
||||||
minetest.register_node(":stairs:slab_" .. subname, {
|
minetest.register_node(":stairs:slab_" .. subname, {
|
||||||
description = description,
|
description = description,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -170,7 +172,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = new_groups,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -318,7 +320,8 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
groups.stair = 1
|
local new_groups = table.copy(groups)
|
||||||
|
new_groups.stair = 1
|
||||||
minetest.register_node(":stairs:stair_inner_" .. subname, {
|
minetest.register_node(":stairs:stair_inner_" .. subname, {
|
||||||
description = "Inner " .. description,
|
description = "Inner " .. description,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -326,7 +329,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images, descri
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = new_groups,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -395,7 +398,8 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
groups.stair = 1
|
local new_groups = table.copy(groups)
|
||||||
|
new_groups.stair = 1
|
||||||
minetest.register_node(":stairs:stair_outer_" .. subname, {
|
minetest.register_node(":stairs:stair_outer_" .. subname, {
|
||||||
description = "Outer " .. description,
|
description = "Outer " .. description,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
@ -403,7 +407,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images, descri
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = groups,
|
groups = new_groups,
|
||||||
sounds = sounds,
|
sounds = sounds,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
Loading…
Reference in New Issue
Block a user