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) + } } }