So i have been using a modified version of DW's portal manager for some time but for some reason everything has stopped working due to one issue I am no longer able to get the name of an item in the chest inventory. Normally I would use the following
but for some reason display_name returns a blank string now I have tried name=j["name"] and several other variants but for some reason it still returns a blank line for every item in the inventory
Any ideas on this would be greatly appriciated
Code:
function checkSlots(id)
data = {}
local slot
local name
local slots = p.getAllStacks()
for i,j in pairs(slots) do
slot = i
name = j["display_name"]
-- print(name)
data[slot]=name
end
rednet.send(id,"done")
end
but for some reason display_name returns a blank string now I have tried name=j["name"] and several other variants but for some reason it still returns a blank line for every item in the inventory
Any ideas on this would be greatly appriciated