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
Edited by skypop, 16 October 2016 - 12:12 AM.