Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
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
xdecor
Commits
1bde3ca5
Commit
1bde3ca5
authored
9 years ago
by
Milan
Browse files
Options
Downloads
Plain Diff
Merge
https://github.com/kilbith/xdecor
parents
716d3e7c
fda92376
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
itemframe.lua
+1
-1
1 addition, 1 deletion
itemframe.lua
rope.lua
+2
-1
2 additions, 1 deletion
rope.lua
with
3 additions
and
2 deletions
itemframe.lua
+
1
−
1
View file @
1bde3ca5
...
...
@@ -74,7 +74,7 @@ function itemframe.rightclick(pos, node, clicker, itemstack)
if
player
~=
owner
or
not
itemstack
then
return
end
drop_item
(
pos
,
node
)
local
itemstring
=
itemstack
:
take_item
():
get_name
()
local
itemstring
=
itemstack
:
take_item
():
to_string
()
meta
:
set_string
(
"item"
,
itemstring
)
update_item
(
pos
,
node
)
...
...
This diff is collapsed.
Click to expand it.
rope.lua
+
2
−
1
View file @
1bde3ca5
...
...
@@ -7,13 +7,14 @@ minetest.register_on_punchnode(function(pos, oldnode, digger)
end
end
)
function
rope
.
place
(
itemstack
,
_
,
pointed_thing
)
function
rope
.
place
(
itemstack
,
placer
,
pointed_thing
)
if
pointed_thing
.
type
==
"node"
then
local
under
=
pointed_thing
.
under
local
above
=
pointed_thing
.
above
local
pos
=
above
local
oldnode
=
minetest
.
get_node
(
pos
)
local
stackname
=
itemstack
:
get_name
()
if
minetest
.
is_protected
(
pos
,
placer
:
get_player_name
())
then
return
end
while
oldnode
.
name
==
"air"
and
not
itemstack
:
is_empty
()
do
local
newnode
=
{
name
=
stackname
,
param1
=
0
}
...
...
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