Skip to content

Commit 45bbd9f

Browse files
authoredOct 29, 2018
Don’t damage unloaded blocks (#435)
1 parent 028c290 commit 45bbd9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎mesecons_mvps/init.lua

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ end
5555

5656
-- tests if the node can be pushed into, e.g. air, water, grass
5757
local function node_replaceable(name)
58-
if name == "ignore" then return true end
59-
6058
if minetest.registered_nodes[name] then
6159
return minetest.registered_nodes[name].buildable_to or false
6260
end
@@ -260,6 +258,10 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor)
260258
end
261259
end
262260

261+
-- Never push into unloaded blocks. Don’t try to pull from them, either.
262+
-- TODO: load blocks instead, as with wires.
263+
mesecon.register_mvps_stopper("ignore")
264+
263265
mesecon.register_mvps_stopper("doors:door_steel_b_1")
264266
mesecon.register_mvps_stopper("doors:door_steel_t_1")
265267
mesecon.register_mvps_stopper("doors:door_steel_b_2")

0 commit comments

Comments
 (0)
Please sign in to comment.