From 48bfa71c31b9e831176773f6616897d4a3046b4d Mon Sep 17 00:00:00 2001 From: natedogith1 Date: Wed, 17 Sep 2014 21:00:56 -0400 Subject: [PATCH] Update DebugCard.scala Fixed a few of the Callback docs --- src/main/scala/li/cil/oc/server/component/DebugCard.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/scala/li/cil/oc/server/component/DebugCard.scala b/src/main/scala/li/cil/oc/server/component/DebugCard.scala index bdd18e5a8..786ef5499 100644 --- a/src/main/scala/li/cil/oc/server/component/DebugCard.scala +++ b/src/main/scala/li/cil/oc/server/component/DebugCard.scala @@ -84,15 +84,15 @@ object DebugCard { null }) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function():number -- Get the player's health.""") def getHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => Array(float2Float(player.getHealth))) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function():number -- Get the player's max health.""") def getMaxHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => Array(float2Float(player.getMaxHealth))) - @Callback(doc = """function():number, number, number -- Get the player's position.""") + @Callback(doc = """function(health:number) -- Set the player's health.""") def setHealth(context: Context, args: Arguments): Array[AnyRef] = withPlayer(player => { player.setHealth(args.checkDouble(0).toFloat) @@ -231,4 +231,4 @@ object DebugCard { } } -} \ No newline at end of file +}