LuaEntity::display_panel_icon reading/writing nil

This subforum contains all the issues which we already resolved.
User avatar
Quezler
Filter Inserter
Filter Inserter
Posts: 252
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

LuaEntity::display_panel_icon reading/writing nil

Post by Quezler »

If a display panel has no icon then reading it returns nil, according the the docs it cannot be nil.

You cannot clear the icon of a display panel either.

/c game.print(serpent.line(game.player.selected.display_panel_icon)) -- nil
/c game.player.selected.display_panel_icon = nil -- fails
/c game.player.selected.display_panel_icon = {} -- fails

Expected behavior: reading nil becomes documented, and writing nil to clear the icon becomes supported.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4081
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: LuaEntity::display_panel_icon reading/writing nil

Post by boskid »

Thanks for the report. Issue is now fixed for 2.0.65.
Post Reply

Return to “Resolved Problems and Bugs”