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
45bbd9f7
Unverified
Commit
45bbd9f7
authored
6 years ago
by
Vitaliy
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Don’t damage unloaded blocks (#435)
parent
028c290c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mesecons_mvps/init.lua
+4
-2
4 additions, 2 deletions
mesecons_mvps/init.lua
with
4 additions
and
2 deletions
mesecons_mvps/init.lua
+
4
−
2
View file @
45bbd9f7
...
...
@@ -55,8 +55,6 @@ end
-- tests if the node can be pushed into, e.g. air, water, grass
local
function
node_replaceable
(
name
)
if
name
==
"ignore"
then
return
true
end
if
minetest
.
registered_nodes
[
name
]
then
return
minetest
.
registered_nodes
[
name
].
buildable_to
or
false
end
...
...
@@ -260,6 +258,10 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor)
end
end
-- Never push into unloaded blocks. Don’t try to pull from them, either.
-- TODO: load blocks instead, as with wires.
mesecon
.
register_mvps_stopper
(
"ignore"
)
mesecon
.
register_mvps_stopper
(
"doors:door_steel_b_1"
)
mesecon
.
register_mvps_stopper
(
"doors:door_steel_t_1"
)
mesecon
.
register_mvps_stopper
(
"doors:door_steel_b_2"
)
...
...
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