Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mesecons
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
mesecons
Commits
d8f82e67
Commit
d8f82e67
authored
7 years ago
by
Eduardo Trápani
Committed by
sfan5
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix sticky pistons (#403)
Fixed method name to get the position.
parent
7537b9f3
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
mesecons_mvps/init.lua
+1
-1
1 addition, 1 deletion
mesecons_mvps/init.lua
with
1 addition
and
1 deletion
mesecons_mvps/init.lua
+
1
−
1
View file @
d8f82e67
...
...
@@ -219,7 +219,7 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor)
movefactor
=
movefactor
or
1
dir
=
vector
.
multiply
(
dir
,
movefactor
)
for
id
,
obj
in
pairs
(
minetest
.
object_refs
)
do
local
obj_pos
=
obj
:
get
_
pos
()
local
obj_pos
=
obj
:
getpos
()
local
cbox
=
obj
:
get_properties
().
collisionbox
local
min_pos
=
vector
.
add
(
obj_pos
,
vector
.
new
(
cbox
[
1
],
cbox
[
2
],
cbox
[
3
]))
local
max_pos
=
vector
.
add
(
obj_pos
,
vector
.
new
(
cbox
[
4
],
cbox
[
5
],
cbox
[
6
]))
...
...
This diff is collapsed.
Click to expand it.
Milan
@milan
mentioned in commit
073c92d4
·
4 years ago
mentioned in commit
073c92d4
mentioned in commit 073c92d487af464136610dc17b0730b2d174c320
Toggle commit list
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