diff --git a/src/main/scala/li/cil/oc/common/container/Printer.scala b/src/main/scala/li/cil/oc/common/container/Printer.scala index 3be5e425aa..1f43aa338d 100644 --- a/src/main/scala/li/cil/oc/common/container/Printer.scala +++ b/src/main/scala/li/cil/oc/common/container/Printer.scala @@ -8,6 +8,7 @@ import net.minecraft.entity.player.PlayerInventory import net.minecraft.item.ItemStack import net.minecraft.inventory.IInventory import net.minecraft.inventory.container.ContainerType +import net.minecraft.inventory.container.{Slot => BaseSlot} import net.minecraft.nbt.CompoundNBT class Printer(selfType: ContainerType[_ <: Printer], id: Int, playerInventory: PlayerInventory, val printer: IInventory) @@ -27,7 +28,9 @@ class Printer(selfType: ContainerType[_ <: Printer], id: Int, playerInventory: P PrintData.inkValue(stack) > 0 } }) - addSlotToContainer(152, 35) + addSlot(new BaseSlot(otherInventory, slots.size, 152, 35) { + override def mayPlace(stack: ItemStack): Boolean = false + }) // Show the player's inventory. addPlayerInventorySlots(8, 84)