1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-02-11 00:20:05 +00:00

Add .getLabel to computer peripheral

Closes #359
This commit is contained in:
Steven Dirth 2017-07-09 12:43:50 -05:00
parent 592c0c9341
commit 4b36ed6719

View File

@ -45,6 +45,7 @@ public class ComputerPeripheral
"reboot", "reboot",
"getID", "getID",
"isOn", "isOn",
"getLabel",
}; };
} }
@ -83,6 +84,9 @@ public class ComputerPeripheral
// isOn // isOn
return new Object[] { m_computer.isOn() }; return new Object[] { m_computer.isOn() };
} }
case 5:
// getLabel
return new Object[] { m_computer.getLabel() };
default: default:
{ {
return null; return null;