Posted 27 June 2015 - 03:13 PM
Hello everyone,
I came across a little problem while writing a program that is suppost to retrieve items from my ME system using the Peripherals++ ME bridge.
It goes through the program untill it actually tries to retrieve the items (the selecting and all that works).
The error it gives is :"Java Exception Thrown: java.lang.ArrayIndexOutOfBoundsException: 1".
And thats it here is the code
Thank you
I came across a little problem while writing a program that is suppost to retrieve items from my ME system using the Peripherals++ ME bridge.
It goes through the program untill it actually tries to retrieve the items (the selecting and all that works).
The error it gives is :"Java Exception Thrown: java.lang.ArrayIndexOutOfBoundsException: 1".
And thats it here is the code
local me = peripheral.wrap("back")
local s = peripheral.wrap("right")
rednet.open("top")
local function test()
print("Enter item code please.")
input = read()
print("How many " .. input .. " do you want?")
input2 = tonumber(read())
me.retrieve(input, input2, "left")
term.clear()
end
test()
Thank you