From fb6111a3f626701e06a65131844efb02ee053b47 Mon Sep 17 00:00:00 2001 From: RealBadAngel <mk@realbadangel.pl> Date: Sun, 14 Apr 2013 04:38:57 +0200 Subject: [PATCH] Merge pull request #13 from Novatux/master --- 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