mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Allow getting robot name via robot.player().getDisplayName()
.
This commit is contained in:
parent
b236b01dd0
commit
fed7007259
@ -50,6 +50,8 @@ class Player(val robot: tileentity.Robot) extends FakePlayer(robot.world.asInsta
|
|||||||
|
|
||||||
override def getDefaultEyeHeight = 0f
|
override def getDefaultEyeHeight = 0f
|
||||||
|
|
||||||
|
override def getDisplayName = robot.name
|
||||||
|
|
||||||
// ----------------------------------------------------------------------- //
|
// ----------------------------------------------------------------------- //
|
||||||
|
|
||||||
def updatePositionAndRotation(facing: ForgeDirection, side: ForgeDirection) {
|
def updatePositionAndRotation(facing: ForgeDirection, side: ForgeDirection) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user