I was hoping that would be called after the items were set into the blueprint, but before it shows to the player. Rail Power System uses a ghost entity power pole, this shows on the blueprint, but when the blueprint is built the power pole isn't. So I was hoping to change the item in the blueprint to the correct item so it would get built. Seems like doing this fixup during on_player_configured_blueprint would be too late; since the player would have already been accepting what is in the blueprint. (Although it does work to do my fixup there) Unfortunatly components shows a blank icon until the blueprint is re-opened for configuration.
Code: Select all
local player = game.players[event.player_index]
local stack = player.cursor_stack
if not stack.valid then
log( "stack not valid" );
return
end
if not stack.valid_for_read then
log( "stack not valid for read" );
return
end
.