From fb51709f0a951ccdae57f89e80b49666a94bcac0 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 30 Oct 2020 20:33:18 +0100 Subject: [PATCH] Update InteractEventExtensions.kt --- .../axay/kspigot/extensions/events/InteractEventExtensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/net/axay/kspigot/extensions/events/InteractEventExtensions.kt b/src/main/kotlin/net/axay/kspigot/extensions/events/InteractEventExtensions.kt index 3b7d6068..b25e29c6 100644 --- a/src/main/kotlin/net/axay/kspigot/extensions/events/InteractEventExtensions.kt +++ b/src/main/kotlin/net/axay/kspigot/extensions/events/InteractEventExtensions.kt @@ -28,12 +28,12 @@ val PlayerInteractEntityEvent.interactItem: ItemStack? /** * @return True, if the action was a left mouse button click. */ -val PlayerInteractEvent.isLeftClick get() = action == Action.LEFT_CLICK_BLOCK || action == Action.LEFT_CLICK_AIR +val Action.isLeftClick get() = this == Action.LEFT_CLICK_BLOCK || this == Action.LEFT_CLICK_AIR /** * @return True, if the action was a right mouse button click. */ -val PlayerInteractEvent.isRightClick get() = action == Action.RIGHT_CLICK_BLOCK || action == Action.RIGHT_CLICK_AIR +val Action.isRightClick get() = this == Action.RIGHT_CLICK_BLOCK || this == Action.RIGHT_CLICK_AIR @UnsafeImplementation val PlayerInteractEvent.clickedBlockExceptAir: Block?