From 2d68498dc10bc74a35a5cc0ff4e81b6640807511 Mon Sep 17 00:00:00 2001 From: kpoppel <poulsen.kim@gmail.com> Date: Wed, 08 May 2013 01:42:22 +0200 Subject: [PATCH] Massive change to the way CNC programs are registered. Now the API is open for adding new nodes and inhibiting some nodes for some materials. No more recipes outside of the CNC machine. --- technic/frames.lua | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/technic/frames.lua b/technic/frames.lua index 0e095bd..565a2ef 100644 --- a/technic/frames.lua +++ b/technic/frames.lua @@ -97,6 +97,10 @@ type = "fixed", fixed=nodeboxes, }, + selection_box = { + type="fixed", + fixed={-0.5,-0.5,-0.5,0.5,0.5,0.5} + }, paramtype = "light", frame=1, drop="technic:frame_111111", @@ -373,8 +377,8 @@ end for _,obj in ipairs(objects) do obj:setpos(addVect(obj:getpos(),vect)) - if obj:get_luaentity().name == "pipeworks:tubed_item" then - le=obj:get_luaentity() + le=obj:get_luaentity() + if le and le.name == "pipeworks:tubed_item" then le.start_pos=addVect(le.start_pos,vect) end end -- Gitblit v1.8.0