1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-09 01:42:59 +00:00

Merge pull request #364 from KingofGamesYami/feature/computer-get-label

Add .getLabel
This commit is contained in:
Daniel Ratcliffe
2017-07-25 20:06:22 +01:00
committed by GitHub
3 changed files with 6 additions and 0 deletions

View File

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