RS Bridge seems to break the rs grid when trying to loop through the items
CliffordBot opened this issue · 0 comments
Description:
Hey i have a problem with this code:
local bridge = peripheral.find("rsBridge")
if bridge == nil then
print("RS Bridge not found.")
return
end
local chest = peripheral.find("enderstorage:ender_chest")
if chest == nil then
print("Chest not found.")
return
end
local items = bridge.listItems()
for _, item in ipairs(items) do
local itemInfo = bridge.getItem(item)
if itemInfo.nbt ~= nil and (itemInfo.nbt.Enchantments ~= nil or itemInfo.nbt.affix_data ~= nil or itemInfo.nbt.gem ~= nil) then
print("Analyzing " .. itemInfo.displayName)
local count = bridge.exportItemToPeripheral(item, peripheral.getName(chest))
if count > 0 then
print("Exported " .. count .. " x " .. itemInfo.displayName .. " to " .. peripheral.getName(chest))
end
end
end
Everytime i run this code i need to break my Refined Storage Controller because i can't get any Item manually from any Grid and Items that got imported into the Refined Storage System doesn't Stack anymore.
Can someone help me and sorry for my bad english i really try đ
Issue discovered and described by reporter
Versions:
0.7.27r
Logs and co.:
Nothing
Reported by:
GĂȘlatinĂȘ
Uploaded with Clifford, mabe by Srendi