From 4f1a44a80b5522db60125f3018c0ce80fbb9e3b4 Mon Sep 17 00:00:00 2001 From: kpoppel <poulsen.kim@gmail.com> Date: Mon, 03 Jun 2013 23:42:44 +0200 Subject: [PATCH] Removing ununsed textures. Added more safety to item_drop to get around a fatal server halt issue. --- 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