Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
minetest_game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
minetest_game
Commits
b042106f
Commit
b042106f
authored
6 years ago
by
TumeniNodes
Committed by
Ezhh
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Stairs: Remove combine slabs code
parent
f583d90c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mods/stairs/init.lua
+0
-30
0 additions, 30 deletions
mods/stairs/init.lua
with
0 additions
and
30 deletions
mods/stairs/init.lua
+
0
−
30
View file @
b042106f
...
...
@@ -143,10 +143,6 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
end
-- Slab facedir to placement 6d matching table
local
slab_trans_dir
=
{[
0
]
=
8
,
0
,
2
,
1
,
3
,
4
}
-- Register slab
-- Node will be called stairs:slab_<subname>
...
...
@@ -198,32 +194,6 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
local
p2
=
under
.
param2
-- combine two slabs if possible
if
slab_trans_dir
[
math.floor
(
p2
/
4
)]
==
dir
and
wield_item
==
under
.
name
then
if
not
recipeitem
then
return
itemstack
end
if
minetest
.
is_protected
(
pointed_thing
.
under
,
player_name
)
and
not
minetest
.
check_player_privs
(
player_name
,
"protection_bypass"
)
then
minetest
.
record_protection_violation
(
pointed_thing
.
under
,
player_name
)
return
end
-- If paramtype2 of cubic version is not 'facedir' set its
-- param2 to 0 to avoid bugs such as liquid in connected
-- framed glass.
if
minetest
.
registered_nodes
[
recipeitem
].
paramtype2
~=
"facedir"
then
p2
=
0
end
minetest
.
set_node
(
pointed_thing
.
under
,
{
name
=
recipeitem
,
param2
=
p2
})
if
not
creative_enabled
then
itemstack
:
take_item
()
end
return
itemstack
end
-- Placing a slab on an upside down slab should make it right-side up.
if
p2
>=
20
and
dir
==
8
then
p2
=
p2
-
20
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment