diff --git a/src/main/scala/li/cil/oc/server/component/Tablet.scala b/src/main/scala/li/cil/oc/server/component/Tablet.scala index bb9aae736..cbffec1df 100644 --- a/src/main/scala/li/cil/oc/server/component/Tablet.scala +++ b/src/main/scala/li/cil/oc/server/component/Tablet.scala @@ -37,4 +37,7 @@ class Tablet(val tablet: TabletWrapper) extends prefab.ManagedEnvironment with D @Callback(doc = """function():number -- Gets the pitch of the player holding the tablet.""") def getPitch(context: Context, args: Arguments): Array[AnyRef] = result(tablet.player.rotationPitch) + + @Callback(doc = """function():number -- Gets the yaw of the player holding the tablet.""") + def getYaw(context: Context, args: Arguments): Array[AnyRef] = result(tablet.player.rotationYaw) }