From 4199f121242ae2c54b5571c26cfbf2fc0e521c97 Mon Sep 17 00:00:00 2001 From: Vexatos Date: Tue, 2 Dec 2014 21:18:13 +0100 Subject: [PATCH] Update InternetCard.scala --- src/main/scala/li/cil/oc/server/component/InternetCard.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/li/cil/oc/server/component/InternetCard.scala b/src/main/scala/li/cil/oc/server/component/InternetCard.scala index bce2d9520..1a1c8575a 100644 --- a/src/main/scala/li/cil/oc/server/component/InternetCard.scala +++ b/src/main/scala/li/cil/oc/server/component/InternetCard.scala @@ -64,7 +64,7 @@ class InternetCard extends prefab.ManagedEnvironment { } @Callback(direct = true, doc = """function():boolean -- Returns whether TCP connections can be made (config setting).""") - def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.httpEnabled) + def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.tcpEnabled) @Callback(doc = """function(address:string[, port:number]):number -- Opens a new TCP connection. Returns the handle of the connection.""") def connect(context: Context, args: Arguments): Array[AnyRef] = this.synchronized { @@ -376,4 +376,4 @@ object InternetCard { } } -} \ No newline at end of file +}