Skip to content

Commit

Permalink
fix #3603
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed May 7, 2023
1 parent d3d887f commit c7c9601
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
* Changed: The game now crashes instead of reloading defaults if a config file is present but invalid.
* Fixed: [#3588] Renaming over other files does not properly free space.
* Fixed: [#3591] Memory leak with wrapped worlds from other mods.
* Fixed: [#3609] Swapped arguments in a graphics card "bitblt()" edge case.
* Fixed: [#3603] computer.getDeviceInfo doesn't pause the computer immediately (AR2000AR)
* Fixed: [#3609] Swapped arguments in a graphics card "bitblt()" edge case. (Kosmos-Prime)
* Removed: Native Lua library support for x86 (32-bit) macOS.
* (1.7.10) Fixed: [#3239] Inconsistencies in Robot block clicking.

Expand All @@ -37,4 +38,4 @@

## List of contributors

asie, hohserg1, payonel, repo-alt, Smok1e, TheCodex6824
AR2000AR, asie, hohserg1, Kosmos-Prime, payonel, repo-alt, Smok1e, TheCodex6824
2 changes: 1 addition & 1 deletion src/main/scala/li/cil/oc/server/machine/Machine.scala
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ class Machine(val host: MachineHost) extends prefab.ManagedEnvironment with mach
null
}

@Callback(direct = true, doc = """function():table -- Collect information on all connected devices.""")
@Callback(doc = """function():table -- Collect information on all connected devices.""")
def getDeviceInfo(context: Context, args: Arguments): Array[AnyRef] = {
context.pause(1) // Iterating all nodes is potentially expensive, and I see no practical reason for having to call this frequently.
Array[AnyRef](node.network.nodes.map(n => (n, n.host)).collect {
Expand Down

0 comments on commit c7c9601

Please sign in to comment.