[Rseding91] [0.16.7] game.player.opened = item_without_gui crashes game
Posted: Sat Dec 23, 2017 10:08 pm
The following console command crashes vanilla 0.16.7 in a brand new game:
It works if the first quickbar item is not an openable item (e.g. Modular Armor, etc.). If the first quickbar slot is empty, the crash still occurs.
The expected result was a console error message telling modders to stop doing stupid things.
(As an aside, would this -- or right-clicking on an inventory item -- raise `on_mod_item_opened` on an item that is `can_be_mod_opened`?)
Code: Select all
/c game.player.opened = game.player.get_quickbar()[1]
The expected result was a console error message telling modders to stop doing stupid things.
(As an aside, would this -- or right-clicking on an inventory item -- raise `on_mod_item_opened` on an item that is `can_be_mod_opened`?)