From d0efa15b983f7a0a96e1a7abcdad713715dfeeeb Mon Sep 17 00:00:00 2001 From: Zefram <zefram@fysh.org> Date: Mon, 18 Aug 2014 16:14:15 +0200 Subject: [PATCH] In quarry, skip past undiggable nodes --- technic/init.lua | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/technic/init.lua b/technic/init.lua index fcd1cd9..28427da 100644 --- a/technic/init.lua +++ b/technic/init.lua @@ -4,6 +4,13 @@ technic = technic or {} +technic.tube_inject_item = pipeworks.tube_inject_item or function (pos, start_pos, velocity, item) + local tubed = pipeworks.tube_item(vector.new(pos), item) + tubed:get_luaentity().start_pos = vector.new(start_pos) + tubed:setvelocity(velocity) + tubed:setacceleration(vector.new(0, 0, 0)) +end + local load_start = os.clock() local modpath = minetest.get_modpath("technic") technic.modpath = modpath -- Gitblit v1.8.0