API Docs Question

Place to get help with not working mods / modding interface.
spartanlaser32
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Mar 20, 2025 7:24 pm
Contact:

API Docs Question

Post by spartanlaser32 »

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?
Bilka
Factorio Staff
Factorio Staff
Posts: 3357
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: API Docs Question

Post by Bilka »

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.
Post Reply

Return to “Modding help”