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",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
- groups = groups,
+ groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
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",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
- groups = groups,
+ groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
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",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
- groups = groups,
+ groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",
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",
paramtype = "light",
paramtype2 = "facedir",
is_ground_content = false,
- groups = groups,
+ groups = new_groups,
sounds = sounds,
node_box = {
type = "fixed",