Update InventoryExtensions.kt

This commit is contained in:
bluefireoly
2020-10-31 15:13:57 +01:00
parent 28505ec95b
commit c56615cc49

View File

@@ -5,6 +5,10 @@ import org.bukkit.inventory.Inventory
fun Inventory.closeForViewers() = viewers.forEach { it.closeInventory() }
/**
* @return True, if the action was a simple inventory click.
* (a mouse click, where items were picked up or placed)
*/
val InventoryAction.isSimple
get() = when (this) {
InventoryAction.PLACE_ALL, InventoryAction.PLACE_ONE,