mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
added getter for maximum packet size to network card
This commit is contained in:
parent
dbc3af26d2
commit
74a30f92c3
@ -60,6 +60,9 @@ class NetworkCard extends ManagedComponent {
|
||||
result(true)
|
||||
}
|
||||
|
||||
@LuaCallback(value = "maxPacketSize", direct = true)
|
||||
def maxPacketSize(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.maxNetworkPacketSize)
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
override def onDisconnect(node: Node) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user