LuaEntity.belt_to_ground_type works on ghosts
Posted: Mon Sep 16, 2024 3:04 am
Thanks to https://www.reddit.com/r/factorio/comme ... y_operate/ I have just learned that I need to be checking for ghost belts and splitters and undergrounds in my "does this real belt curve" code. That means I need to know whether a ghost underground belt is an input or an output. I started writing this request for LuaEntity.ghost_belt_to_ground_type but then discovered the new(ish) Linked Belt entity and the docs saying that LuaEntity.linked_belt_type works directly on ghosts. So I tried LuaEntity.belt_to_ground_type on a ghost... and it works!
So, this request is just to note that in the docs, like it's noted for linked_belt_type, e.g. "Can also be used on entity ghost if it contains linked-belt."
PS: While we're at it, LuaEntity.ghost_loader_type probably deserves this treatment as well.
PPS: It would be great if this was a json field, not just description text. Like `subclasses`, but this field might be called something like `ghost_passthrough`?
PPPS: I started writing this in the interface request forum when I thought it would require an interface change. I guess this is just a doc request now. I'd appreciate if a forum mod would move this over there.
So, this request is just to note that in the docs, like it's noted for linked_belt_type, e.g. "Can also be used on entity ghost if it contains linked-belt."
PS: While we're at it, LuaEntity.ghost_loader_type probably deserves this treatment as well.
PPS: It would be great if this was a json field, not just description text. Like `subclasses`, but this field might be called something like `ghost_passthrough`?
PPPS: I started writing this in the interface request forum when I thought it would require an interface change. I guess this is just a doc request now. I'd appreciate if a forum mod would move this over there.