Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public Grindable(Flag cmd) {

@EventHandler
public void event(InventoryClickEvent event) {
if (!(event.getView().getTopInventory() instanceof GrindstoneInventory))
if (!(event.getInventory() instanceof GrindstoneInventory))
return;
GrindstoneInventory grind = (GrindstoneInventory) event.getView().getTopInventory();
GrindstoneInventory grind = (GrindstoneInventory) event.getInventory();
boolean found = ItemTag.getTagItem(grind.getItem(0)).hasBooleanTag(GRINDABLE_KEY)
|| ItemTag.getTagItem(grind.getItem(1)).hasBooleanTag(GRINDABLE_KEY);
if (!found)
Expand Down