Accept ghost_name as well as inner_name to create_entity

Post Reply
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 470
Joined: Sun May 21, 2017 6:28 pm
Contact:

Accept ghost_name as well as inner_name to create_entity

Post by Therax »

Most places in the API, an entity-ghost is referred to as having a ghost_name to describe the actual entity to be built: find_entities_filtered, LuaEntity. The exception is LuaSurface::create_entity, which requires that the parameter be "inner_name".

"inner_name" needs to be retained for backwards compatibility with existing mods, but it would be nice if create_entity would also accept ghost_name for consistency with the rest of the API.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Accept ghost_name as well as inner_name to create_entity

Post by Rseding91 »

Ok. I added it for 0.17.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Implemented mod requests”