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`?)