Page 1 of 1
[0.12.9] [Rseding91] get_blueprint_entities missing conditions for pumps
Posted: Thu Oct 01, 2015 8:27 am
by Choumiko
Reading a blueprint via get_blueprint_entities() doesn't return the set condition for small pumps.
Create a blueprint with a pump that has a condition set, put it on your cursor and use
Code: Select all
/c game.player.print(serpent.dump(game.player.cursor_stack.get_blueprint_entities()))
Should be like the image for the smart-inserter
Re: [0.12.9]get_blueprint_entities missing conditions for pumps
Posted: Fri Oct 02, 2015 12:23 pm
by HanziQ
Thank you for the report, this will be fixed in the next version.
Re: [0.12.9]get_blueprint_entities missing conditions for pumps
Posted: Sat Oct 03, 2015 1:49 pm
by Choumiko
get seems to be fixed, now set_blueprint_entities ignores the conditions
Code: Select all
/c local stack = game.player.cursor_stack; game.player.print("a"..serpent.dump(stack.get_blueprint_entities()[1].conditions)); game.player.print("b"..serpent.dump(stack.get_blueprint_entities(stack.set_blueprint_entities(stack.get_blueprint_entities()))[1].conditions))
Outputs the same table for a blueprint for a smart inserter with a condition,
for a pump it the second dump is nil
Re: [0.12.9] [Rseding91] get_blueprint_entities missing conditions for pumps
Posted: Tue Oct 06, 2015 2:48 am
by Rseding91
Thanks for the report. I also fixed this issue for the offshore pump.