06-06-2017, 05:58 PM
(This post was last modified: 06-06-2017, 05:59 PM by Seadragon91.)
I tested the hook for regular windows and it works.
But for this I have a idea:
But for this I have a idea:
- Get the block entity that the player wants to open
- Deny the opening of the block entity
- Create a lua window with the content of the block entity
- Call cPlayer:OpenWindow to open it
- Now the hook will be called and combining a list containing the player and the block entity - everything should be possible
- If the player closes the window, the callback SetOnClosing can be used to write the content back