Skip to content

Commit

Permalink
fix: Fix grindstone not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Toldoven committed Jun 11, 2023
1 parent a474efd commit 7b884c6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class ForbidGrindstoneListener(val plugin: DiscsPlugin): Listener {
@EventHandler
fun onPrepareGrindstoneEvent(event: PrepareGrindstoneEvent) {
if (
event.inventory.lowerItem?.isForbidden() == false &&
event.inventory.upperItem?.isForbidden() == false
) return
event.result = null
event.inventory.lowerItem?.isForbidden() == true ||
event.inventory.upperItem?.isForbidden() == true
) event.result = null
}
}

0 comments on commit 7b884c6

Please sign in to comment.