Closed emberquill closed 10 years ago
pullItemIntoSlot() seems to be doing the same thing, dumping items into the first available slot in my hotbar.
Can't reproduce, please make sure you are using latest version
I just tested it in a brand-new Minecraft instance with the latest versions of Forge, ComputerCraft, OpenModsLib, OpenPeripheralCore, and OpenPeripheralAddons and no other mods at all. I just used a vanilla chest. Same problem. Is there something wrong with my code?
This SHOULD put it in slot 2, but it ends up in slot 1.
Ok, my derp. Fixed in OpenModsLib
I have a PIM adjacent to two EnderStorage Ender Chests. I wrote a little program that would empty my inventory, hotbar, and armor into the chests, using pushItemIntoSlot() so I could then use pullItemIntoSlot() to re-equip my armor and put my hotbar items back where they were. Unfortunately, it looks like it puts items in the first available slot in the Ender Chest, no matter what slot I specify.
Here's a little test program I ran to make sure I hadn't made a mistake in my code. It's supposed to put the dirt in slot 2: