CC: Tweaked 1.12.2-1.89.2 & Logistics 1.12.2-0.10.4.18 - makeRequest #1676
Labels
Bug
Mod Interaction
Another mod is involved
Needs Validation
For developers to reproduce the issue and check back with the issuer if necessary
Hey there!
I've seen a few duplicate posts about the API and getItem / makeRequest. The API works just fine for me but I am unable to get it to actually process makeRequest.
Heres my code -------------->
local pipe = peripheral.wrap('LogisticsPipes:Request_0')
local item_dat = pipe.getAvailableItems()
local function getItem()
local r = pipe.getLP().getItemIdentifierBuilder()
r.setItemID( item_dat[1].getValue1().getIdName() || tostring(..) || textutils.serialise(..))
r.setItemData( item_dat[1].getValue1().getData())
req = r.build()
pipe.makeRequest( req, 1)
end
When running with item_dat[1].getValue1().getIdName() || tostring(..) I get these errors -------------->
Java Exception Thrown:
java.lang.UnsupportedOperationException: No such method.makeRequest(logisticspipes.utils.item.ItemIdentifier, java.lang.Double, java.lang.Boolean)
makeRequest(logisticspipes.utils.item.ItemIdentifierStack)
makeRequest(logisticspipes.utils.item.ItemIdentifierStack, java.lang.Boolean)
makeRequest(logisticspipes.utils.item.ItemIdentifier, java.lang.Double)
If I run it with textutils.serialise(..) I get this -------------->
Java Exception Thrown: java.lang.RuntimeException:
Java.lang.UnsupportedOperationException: Not a valid ItemIdentifier. I've also tried using the integer item ID's as well as raw item names etc.
Any help would be greatly appreciated!!
The text was updated successfully, but these errors were encountered: