Compare commits
2 Commits
14bd08b16c
...
49833b2270
| Author | SHA1 | Date | |
|---|---|---|---|
| 49833b2270 | |||
| 0f4fe2bb81 |
@@ -20,6 +20,13 @@ local function ItemStack_new(item)
|
||||
end
|
||||
|
||||
function ItemStack:getName()
|
||||
--- check for custom name
|
||||
if self.data.hasTagCompount() then
|
||||
local nbt = self.data.getTagCompount()
|
||||
if nbt.value.display and nbt.value.display.value.Name then
|
||||
return nbt.value.display.value.Name.value
|
||||
end
|
||||
end
|
||||
return self.data.getName()
|
||||
end
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
local component = require("component")
|
||||
local pipe = component.logisticspipe.getPipe()
|
||||
local items = pipe.getAvailableItems()
|
||||
print("Requesting all items I can find... this might take up a lot of storage space!")
|
||||
|
||||
Reference in New Issue
Block a user