OpenMods / OpenPeripheral

https://openmods.info
MIT License
67 stars 25 forks source link

appeng extractItem(), insertItem() not working #137

Closed vScourge closed 10 years ago

vScourge commented 10 years ago

I can't get extractItem() or insertItem() to work, they always return zero and do nothing.

With a live/powered ME cable or ME Crafting Terminal to one side of the computer (tried turtle too), and a vanilla chest above it with 1 cobblestone in the first inventory slot, the insertItem and extractItem calls both return zero and do not add or remove items from the chest:

p = peripheral.wrap( 'left' ) data = p.getAvailableItems() p.extractItem(data[686],'top')

p.insertItem(1,1,'top') Direction is supposed to be where the inventory is relative to the wrapped peripheral, in this case the ME cable or ME Crafting Terminal (tried both). Is that correct? I've tried changing the direction to every one on the compass and result is the same. Using Minecraft 1.6.4, Forge 9.11.1.965, OpenPeripheral Core 0.3.3, OpenPeripheral Addons 0.1.3, OpenModsLib 0.4b and Applied Energistics rv14-finale3
vScourge commented 10 years ago

Nevermind, please close this. I discovered that "peripheral" directions like "top" and "left" don't work. It expects forgeDirection, like "up" and "east".