https://lua-api.factorio.com/latest/cla ... for_repair
I was reading the API for the LuaEntity class and in the description for the is_registered_for_repair() function is this bit "If false, it means a construction robot has been dispatched to upgrade it, or it is not damaged.".
Just curious, why is it conditioned on the entity being upgraded if its a repair-based function?
The other functions similiar to this:
is_registered_for_construction()
is_registered_for_deconstruction(force)
is_registered_for_upgrade()
all have very similar descriptions but they all have the correct corresponding conditions for it being false.
I'm assuming it's just an error considering the LuaEntity API page is quite long and it should say "If false, it means a construction robot has been dispatched to repair it". If not, then why?
API Docs Question
-
- Manual Inserter
- Posts: 1
- Joined: Thu Mar 20, 2025 7:24 pm
- Contact:
Re: API Docs Question
It's just a copy paste error in the docs.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.