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
dcf1f799
Commit
dcf1f799
authored
10 years ago
by
Jeija
Browse files
Options
Downloads
Patches
Plain Diff
Fix #184, Fix #186, Fix #187
Just some minor issues like dead code.
parent
d3252922
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mesecons/actionqueue.lua
+2
-1
2 additions, 1 deletion
mesecons/actionqueue.lua
mesecons_luacontroller/init.lua
+0
-1
0 additions, 1 deletion
mesecons_luacontroller/init.lua
mesecons_pistons/init.lua
+5
-4
5 additions, 4 deletions
mesecons_pistons/init.lua
with
7 additions
and
6 deletions
mesecons/actionqueue.lua
+
2
−
1
View file @
dcf1f799
...
...
@@ -44,7 +44,8 @@ end
-- However, even that does not work in some cases, that's why we delay the time the globalsteps
-- start to be execute by 5 seconds
local
get_highest_priority
=
function
(
actions
)
local
highestp
=
-
1
,
highesti
local
highestp
=
-
1
local
highesti
for
i
,
ac
in
ipairs
(
actions
)
do
if
ac
.
priority
>
highestp
then
highestp
=
ac
.
priority
...
...
This diff is collapsed.
Click to expand it.
mesecons_luacontroller/init.lua
+
0
−
1
View file @
dcf1f799
...
...
@@ -477,7 +477,6 @@ minetest.register_node(nodename, {
reset_meta
(
pos
,
fields
.
code
,
err
)
end
end
,
on_timer
=
handle_timer
,
sounds
=
default
.
node_sound_stone_defaults
(),
mesecons
=
mesecons
,
digiline
=
digiline
,
...
...
This diff is collapsed.
Click to expand it.
mesecons_pistons/init.lua
+
5
−
4
View file @
dcf1f799
...
...
@@ -56,14 +56,15 @@ end
local
piston_remove_pusher
=
function
(
pos
,
node
)
pistonspec
=
minetest
.
registered_nodes
[
node
.
name
].
mesecons_piston
if
pushername
==
pistonspec
.
pusher
then
--make sure there actually is a pusher (for compatibility reasons mainly)
return
end
dir
=
piston_get_direction
(
pistonspec
.
dir
,
node
)
local
pusherpos
=
mesecon
:
addPosRule
(
pos
,
dir
)
local
pushername
=
minetest
.
get_node
(
pusherpos
).
name
-- make sure there actually is a pusher (for compatibility reasons mainly)
if
pushername
~=
pistonspec
.
pusher
then
return
end
minetest
.
remove_node
(
pusherpos
)
minetest
.
sound_play
(
"piston_retract"
,
{
pos
=
pos
,
...
...
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