Additions to LuaTransportLine

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Additions to LuaTransportLine

Post by CmdrKeen »

Would it be possible to add the following API functions to the LuaTransportLine class?

- can_remove_from_front() -> boolean - can an item be removed from the front of the transportline
- remove_from_front() -> SimpleItemStack - removes an item from the front of the transportline, returns the item removed from the belt as a return value or nil if no item could be removed.

These function calls should reduce the need to call get_contents which i'm guessing is a bit expensive.

Post Reply

Return to “Modding interface requests”