From cad5026a5f1ba429896f21c8e98169d8b4ee89ab Mon Sep 17 00:00:00 2001 From: payonel Date: Sat, 2 Dec 2017 23:12:34 -0800 Subject: [PATCH] adding max packet parts to device info width for linked cards and network cards closes #2294 --- src/main/scala/li/cil/oc/server/component/LinkedCard.scala | 3 ++- src/main/scala/li/cil/oc/server/component/NetworkCard.scala | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/scala/li/cil/oc/server/component/LinkedCard.scala b/src/main/scala/li/cil/oc/server/component/LinkedCard.scala index ac7f0d8dd..f9b3b982a 100644 --- a/src/main/scala/li/cil/oc/server/component/LinkedCard.scala +++ b/src/main/scala/li/cil/oc/server/component/LinkedCard.scala @@ -34,7 +34,8 @@ class LinkedCard extends prefab.ManagedEnvironment with QuantumNetwork.QuantumNo DeviceAttribute.Description -> "Quantumnet controller", DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor, DeviceAttribute.Product -> "HyperLink IV: Ender Edition", - DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString + DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString, + DeviceAttribute.Width -> Settings.get.maxNetworkPacketParts ) override def getDeviceInfo: util.Map[String, String] = deviceInfo diff --git a/src/main/scala/li/cil/oc/server/component/NetworkCard.scala b/src/main/scala/li/cil/oc/server/component/NetworkCard.scala index d5823d184..bd21cbc81 100644 --- a/src/main/scala/li/cil/oc/server/component/NetworkCard.scala +++ b/src/main/scala/li/cil/oc/server/component/NetworkCard.scala @@ -48,7 +48,8 @@ class NetworkCard(val host: EnvironmentHost) extends prefab.ManagedEnvironment w DeviceAttribute.Description -> "Ethernet controller", DeviceAttribute.Vendor -> Constants.DeviceInfo.DefaultVendor, DeviceAttribute.Product -> "42i520 (MPN-01)", - DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString + DeviceAttribute.Capacity -> Settings.get.maxNetworkPacketSize.toString, + DeviceAttribute.Width -> Settings.get.maxNetworkPacketParts ) override def getDeviceInfo: util.Map[String, String] = deviceInfo