Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
illuna-minetest
Commits
28f5b556
Commit
28f5b556
authored
12 years ago
by
PilzAdam
Browse files
Options
Downloads
Patches
Plain Diff
Dont call on_rightclick() if sneak is pressed
parent
c1fee78e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/item.lua
+2
-1
2 additions, 1 deletion
builtin/item.lua
with
2 additions
and
1 deletion
builtin/item.lua
+
2
−
1
View file @
28f5b556
...
...
@@ -232,7 +232,8 @@ end
function
minetest
.
item_place
(
itemstack
,
placer
,
pointed_thing
)
-- Call on_rightclick if the pointed node defines it
if
pointed_thing
.
type
==
"node"
then
if
pointed_thing
.
type
==
"node"
and
placer
and
not
placer
:
get_player_control
().
sneak
then
local
n
=
minetest
.
env
:
get_node
(
pointed_thing
.
under
)
local
nn
=
n
.
name
if
minetest
.
registered_nodes
[
nn
]
and
minetest
.
registered_nodes
[
nn
].
on_rightclick
then
...
...
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