1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-31 08:12:56 +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
commit 6701403370
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;

View File

@ -32,6 +32,7 @@ New Features in ComputerCraft 1.80:
* Fixed a handful of bugs in ComputerCraft
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
* Startup can now be a directory containing multiple startup files
* Added .getLabel to the computer peripheral
New Features in ComputerCraft 1.79:

View File

@ -32,5 +32,6 @@ New Features in ComputerCraft 1.80:
* Fixed a handful of bugs in ComputerCraft
* Added speaker block, turtle upgrade, pocket upgrade, and peripheral api
* Startup can now be a directory containing multiple startup files
* Added .getLabel to the computer peripheral
Type "help changelog" to see the full version history.