In the on_marked_for_deconstruction event, if a tile was marked, the given entity is of the type deconstructible-tile-proxy. Is there any way to get the name of the actual tile that was marked? For example, if a dropped item is marked you get an item-on-ground, but the name of the item itself is still inside the entity.stack.name property. Is there anything equivalent for the deconstructible-tile-proxy?
The current workaround I have is to check the tile at the entity's position on the entity's surface, but that's probably not the most CPU efficient way.
deconstructible-tile-proxy
-
- Inserter
- Posts: 47
- Joined: Tue Oct 20, 2015 12:56 pm
- Contact:
Re: deconstructible-tile-proxy
That's the only way to do it. That's how the game does it.NearlyDutch wrote:The current workaround I have is to check the tile at the entity's position on the entity's surface, but that's probably not the most CPU efficient way.
If you want to get ahold of me I'm almost always on Discord.