Page 1 of 1

LuaPlayer.pipette_entity - align held item rotation to match source

Posted: Wed Mar 27, 2019 11:48 pm
by shanemadden
If a player uses the normal pipette keybind on an entity with a direction (eg transport belt), the new cursor stack's direction is set to match the entity that the pipette was used on.

LuaPlayer.pipette_entity when called against an entity sets the entity into the cursor stack in the same way, but doesn't match the direction in the same way, while the doc says it ought to have the same result as a player taking the action. Would it be possible to get the direction-matching added to the programmatic pipette_entity as well?

Thanks a lot!