OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

PIM's pushItemIntoSlot() ignoring destination slot #28

Closed emberquill closed 10 years ago

emberquill commented 10 years ago

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:

pimcode

piminventory

emberquill commented 10 years ago

pullItemIntoSlot() seems to be doing the same thing, dumping items into the first available slot in my hotbar.

boq commented 10 years ago

Can't reproduce, please make sure you are using latest version

emberquill commented 10 years ago

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?

2014-05-28_17 23 46

This SHOULD put it in slot 2, but it ends up in slot 1.

boq commented 10 years ago

Ok, my derp. Fixed in OpenModsLib