From 45bbd9f7e3c48bccd89d1db5715e7ef3348c5d36 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 29 Oct 2018 23:58:07 +0300 Subject: =?UTF-8?q?Don=E2=80=99t=20damage=20unloaded=20blocks=20(#435)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mesecons_mvps/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesecons_mvps/init.lua') diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 428c78a..b8abdd7 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -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") -- cgit v1.2.3