Page 1 of 1

[Rseding91] [0.16.7] game.player.opened = item_without_gui crashes game

Posted: Sat Dec 23, 2017 10:08 pm
by dewiniaid
The following console command crashes vanilla 0.16.7 in a brand new game:

Code: Select all

/c game.player.opened = game.player.get_quickbar()[1]
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`?)

Re: [0.16.7] game.player.opened = item_without_gui crashes game

Posted: Sun Dec 24, 2017 12:49 am
by Rseding91
Thanks for the report. I've fixed it for the next version of 0.16.