forked from minetest-mods/technic
Avoid a nil index crash
This commit is contained in:
parent
1a09ffaf49
commit
985401a23d
@ -373,8 +373,8 @@ function move_nodes_vect(poslist,vect)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user