From 447652ed8c69b1a8da3c40817387d9cef864a9d5 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 2 Oct 2020 15:40:39 +0200 Subject: [PATCH] Update InventoryGUI.kt --- src/main/kotlin/net/axay/kspigot/inventory/InventoryGUI.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUI.kt b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUI.kt index 3f13cf44..d83a9aac 100644 --- a/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUI.kt +++ b/src/main/kotlin/net/axay/kspigot/inventory/InventoryGUI.kt @@ -146,8 +146,10 @@ class InventoryGUIShared( } - override fun set(slot: InventorySlotCompound, value: ItemStack) { - slot.withInvType(data.inventoryType).forEach { } + override operator fun set(slot: InventorySlotCompound, value: ItemStack) { + slot.realSlotsWithInvType(data.inventoryType).forEach { + bukkitInventory.setItem(it, value) + } } }