We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e9157 commit 5536351Copy full SHA for 5536351
1 file changed
core/src/main/java/net/j4c0b3y/api/menu/Menu.java
@@ -254,9 +254,7 @@ public void apply(Template template) {
254
*/
255
public void click(InventoryClickEvent event) {
256
handler.schedule(() -> {
257
- if (!inventory.equals(event.getClickedInventory())) return;
258
-
259
- Button button = buttons.get(event.getSlot());
+ Button button = buttons.get(event.getRawSlot());
260
if (button == null) return;
261
262
button.onClick(new ButtonClick(event, button, this));
0 commit comments