That may not be a bug, but in my humble opinion this is a mistake.
In the present state multiple items return the same value (nil), it confusing computers, turtles and pocket computers...
I think this feature has been forgotten during the1.6 and 1.77 updates.
- ComputerCraft | Programmable Computers for Minecraft
- → skypop's Content
skypop's Content
There have been 3 items by skypop (Search limited from 29-March 23)
#260710 [1.8.9][SSP] disk.getID() on pocket and computer return nil
#260697 [1.8.9][SSP] disk.getID() on pocket and computer return nil
Posted by skypop on 16 October 2016 - 12:01 AM in Bugs
VERSION:
minecraft 1.8.9
computercraft 1.79
DESCRIPTION:
When a computer or pocket-computer is inserted in disk drive, disk.getID(string side) return nil.
Same thing, when wrapping disk drive, function getDiskID() return nil.
By way of comparison disk.getLabel(string side) and getDiskLabel() works perfectly.
EXPECTED RESULT:
Gets the unique ID number.
REPRODUCTION STEPS:
Place a computer and disk drive. Insert a pocket computer (with or whitout label, files...)
Run lua :
minecraft 1.8.9
computercraft 1.79
DESCRIPTION:
When a computer or pocket-computer is inserted in disk drive, disk.getID(string side) return nil.
Same thing, when wrapping disk drive, function getDiskID() return nil.
By way of comparison disk.getLabel(string side) and getDiskLabel() works perfectly.
EXPECTED RESULT:
Gets the unique ID number.
REPRODUCTION STEPS:
Place a computer and disk drive. Insert a pocket computer (with or whitout label, files...)
Run lua :
testID = disk.getID("right") print(tostring(testID)) -- nil print(type(testID)) -- nil _drive = peripheral.wrap("right") testID = _drive.getDiskID("right") print(tostring(testID)) -- nil print(type(testID)) -- nil
- ComputerCraft | Programmable Computers for Minecraft
- → skypop's Content