diff options
author | Vitaliy <numzer0@yandex.ru> | 2018-10-29 23:58:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-29 23:58:07 +0300 |
commit | 45bbd9f7e3c48bccd89d1db5715e7ef3348c5d36 (patch) | |
tree | dc471b761b07b98037dff8955152ffdec4e01b83 | |
parent | 028c290cd70591383682c244a95a955fd3cba083 (diff) |
Don’t damage unloaded blocks (#435)
-rw-r--r-- | mesecons_mvps/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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") |