RealBadAngel
2013-02-22 39fdb88cde7407ce847aafdafaaa60c7e28396e8
Merge pull request #8 from khonkhortisan/master

check whether an object is really a luaentity before trying to get its name
1 files modified
4 ■■■■ changed files
technic/frames.lua 4 ●●●● patch | view | raw | blame | history
technic/frames.lua
@@ -373,8 +373,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