@@ -428,8 +428,7 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
428
428
}
429
429
430
430
/* * Returns whether [block] will trigger some interaction if clicked with [item]. */
431
- private fun hasInteraction (block : Block , item : ItemStack ): Boolean =
432
- CLICKABLE_BLOCKS .isTagged(block)
431
+ private fun hasInteraction (block : Block , item : ItemStack ): Boolean = CLICKABLE_BLOCKS .isTagged(block)
433
432
434
433
@EventHandler(priority = EventPriority .LOW )
435
434
public fun onInteract (event : PlayerInteractEvent ) {
@@ -582,11 +581,7 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
582
581
}
583
582
584
583
/* * Returns whether [clickedPoint] in [view] can be freely moved. */
585
- private fun canFreelyMove (
586
- view : AbstractInterfaceView <* , * , * >,
587
- clickedPoint : GridPoint ,
588
- isPlayerInventory : Boolean
589
- ): Boolean {
584
+ private fun canFreelyMove (view : AbstractInterfaceView <* , * , * >, clickedPoint : GridPoint , isPlayerInventory : Boolean ): Boolean {
590
585
// If we don't allow clicking empty slots we never allow freely moving
591
586
if (view.builder.preventClickingEmptySlots &&
592
587
! (view.builder.allowClickingOwnInventoryIfClickingEmptySlotsIsPrevented && isPlayerInventory)
@@ -678,13 +673,12 @@ public class InterfacesListeners private constructor(private val plugin: Plugin)
678
673
}
679
674
680
675
/* * Returns whether an inventory interaction from [player] should be throttled. */
681
- private fun shouldThrottle (player : Player ): Boolean =
682
- if (spamPrevention.getIfPresent(player.uniqueId) == null ) {
683
- spamPrevention.put(player.uniqueId, Unit )
684
- false
685
- } else {
686
- true
687
- }
676
+ private fun shouldThrottle (player : Player ): Boolean = if (spamPrevention.getIfPresent(player.uniqueId) == null ) {
677
+ spamPrevention.put(player.uniqueId, Unit )
678
+ false
679
+ } else {
680
+ true
681
+ }
688
682
689
683
/* * Starts a new chat query on [view]. */
690
684
public fun startChatQuery (
0 commit comments