Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIM's pushItemIntoSlot() ignoring destination slot #28

Closed
emberquill opened this issue May 28, 2014 · 4 comments
Closed

PIM's pushItemIntoSlot() ignoring destination slot #28

emberquill opened this issue May 28, 2014 · 4 comments

Comments

@emberquill
Copy link

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
Copy link
Author

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

@boq
Copy link
Member

boq commented May 28, 2014

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

@emberquill
Copy link
Author

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
Copy link
Member

boq commented May 29, 2014

Ok, my derp. Fixed in OpenModsLib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants