Bad things.

Submitted on 3 February 2015 at 12:43 UTC
2460 views

Section 1 (lua)

function api.getComponent(componenttype, address)
  if address == nil then
    return component.proxy(component.list(componenttype)())
  else
    return component.proxy(component.get(address))
  end
end

Raw · Download

Pastee