Page 1 of 1

[Rseding] [15.14] choose-element-button type = entity

Posted: Fri May 26, 2017 2:41 pm
by Nexela
I think this showed up in .15.13

Code: Select all

-- creates the button, does not set it straight-rail
/c but = game.player.gui.center.add{type="choose-elem-button", name="elembut", elem_type="entity", elem_value = "straight-rail"}

-- errors that it is not an item prototype
/c but.elem_value = "straight-rail"

-- doesn't change the button value to stone furnace
/c but.elem_value = "stone-furnace"

Re: [Rseding] [15.14] choose-element-button type = entity

Posted: Fri May 26, 2017 5:52 pm
by Rseding91
This has actually been broken since it was added (0.15.0) it always expected elem_type to be "item". Anyway, it's now fixed for the next version of 0.15.