Page 1 of 1

[Bug/Feature] player.opened = LuaPlayer

Posted: Sun Oct 13, 2019 1:35 pm
by DragonD
I am making a mod.
And my mod opens player inventories when ("e" is pressed and game.tick_paused == true) .
I do this by using:

Code: Select all

player.opened = Luaplayer
But this only opens the players crafting menu:
Image

Expected:
Image

In my opinion there aren't any reasons for being unable to open the inventory gui, when the game.tick_paused = true,
because you can't add anything to the crafting queue.

Re: [Bug/Feature] player.opened = LuaPlayer

Posted: Sun Oct 13, 2019 7:33 pm
by Rseding91
Thanks for the report. That's working as intended: as you say - there's no point in even showing the GUI since the player can't do anything with the GUI while tick_paused is true. The GUI specifically is setup to not show the inventory if the player can't do anything with the inventory (not an editor controller and tick_paused is true).

I'm not against changing this but as of now that's why it works like it does. Showing the GUI at all while tick_paused is true for non-editor players doesn't make sense to me.