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:
commit
6701403370
@ -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;
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user