LuaSurface#can_place_entity : name is an EntityID

Place to report issues and suggest improvements to the API documentation.
User avatar
hgschmie
Inserter
Inserter
Posts: 48
Joined: Tue Feb 06, 2024 5:18 am
Contact:

LuaSurface#can_place_entity : name is an EntityID

Post by hgschmie »

In https://lua-api.factorio.com/latest/cla ... ace_entity, the `name` parameter is an EntityID

For https://lua-api.factorio.com/latest/cla ... ace_entity, `name` is documented as string. But it actually is an EntityID, one can pass an entity in there (ignoring the angry squiggly yellow lines in VSCode) and it works.

This seems to be a documentation problem, the actual functionality is fine.
Post Reply

Return to “Documentation Improvement Requests”