Posted 18 March 2015 - 01:45 AM
I'm trying to automate an Extractor from RotaryCraft by reading the inventory slots. The problem is the functions do not behave as expected. The function i call is "printInv", which following the source code of RotaryCraft seems to return an array list of strings.
Now when i print the result directly using the print function, i receive the the strings for each slot in each line. But if i assign the call directly to a variable, i receive only the first element.
I'm not sure this is the right place to ask this question, but i've been looking in both mods documentation and everything seems right to me. Might be a problem at converting the results?
In case it matters the code for the specific files invoking the function:
TileEntityBase.java and LuaPrintInv.java
Now when i print the result directly using the print function, i receive the the strings for each slot in each line. But if i assign the call directly to a variable, i receive only the first element.
I'm not sure this is the right place to ask this question, but i've been looking in both mods documentation and everything seems right to me. Might be a problem at converting the results?
In case it matters the code for the specific files invoking the function:
TileEntityBase.java and LuaPrintInv.java