click.closeForPlayer(): Container is not available in current context [Bukkit 1.8.9] #651
Open
2 of 4 tasks
Labels
bug
Something isn't working
Is there an existing issue for this?
🐛 Describe the bug
When rendering a (layout) item with
.withItem()
, and setting anonClick
handler with.onClick(click -> {})
, closing the inventory withclick.closeForPlayer()
throws an exception with the message:I'm not sure if this is because of layouts, but I wouldn't assume so.
✔️ Expected behavior
The inventory should close normally.
👣 Steps to Reproduce
View
onInit()
define aLayout
for theView
onFirstRender(RenderContext render)
, render an item in theLayout
withA
💻 Platform
⭐ Server Version
1.8.9
📚 Library Version
v3.1.0-rc (compiled from github)
✍️ Additional context
No response
The text was updated successfully, but these errors were encountered: