From 01dba403892de15fefbd15224d27f5dd6555fa8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 9 Jan 2022 11:56:34 +0100 Subject: [PATCH] Mention interface renaming in scripting docs and vice versa. --- .../resources/assets/oc2/doc/en_us/block/bus_interface.md | 4 ++-- src/main/resources/assets/oc2/doc/en_us/scripting.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/assets/oc2/doc/en_us/block/bus_interface.md b/src/main/resources/assets/oc2/doc/en_us/block/bus_interface.md index 88a17991..11cafbc8 100644 --- a/src/main/resources/assets/oc2/doc/en_us/block/bus_interface.md +++ b/src/main/resources/assets/oc2/doc/en_us/block/bus_interface.md @@ -3,6 +3,6 @@ Bus interfaces connect external devices to [computers](computer.md). This includes explicit device blocks, such as the [redstone interface](redstone_interface.md). Some generic functionality blocks of blocks is also available, such as information on energy storage. -It is possible to configure an explicit name for a bus interface using a [wrench](../item/wrench.md). This is useful when attaching multiple devices of the same type to a computer: when searching devices by name, these custom names will also work. +It is possible to configure an explicit name for a bus interface using a [wrench](../item/wrench.md). This is useful when attaching multiple devices of the same type to a computer: when searching devices by type name (`devices:find(typeName)`), these custom names will also work. -Note that [computers](computer.md) must also be explicitly connected to a [bus](bus_cable.md) with a bus connector. \ No newline at end of file +Note that [computers](computer.md) must also be explicitly connected to a [bus](bus_cable.md) with a bus connector. diff --git a/src/main/resources/assets/oc2/doc/en_us/scripting.md b/src/main/resources/assets/oc2/doc/en_us/scripting.md index dd01f9d9..45523054 100644 --- a/src/main/resources/assets/oc2/doc/en_us/scripting.md +++ b/src/main/resources/assets/oc2/doc/en_us/scripting.md @@ -14,7 +14,7 @@ To use the `devices` library, import it using `require("devices")`. - `id` is the unique identifier of the device. - Returns a wrapper for the specified device. -`find(typeName):Device` returns a wrapper for a device of the specified type. If there are many devices of this type, it is undefined which one will be returned. +`find(typeName):Device` returns a wrapper for a device of the specified type. If there are many devices of this type, it is undefined which one will be returned. Aliases set in [Bus Interfaces](block/bus_interface.md) may also be used. - `typeName` is the device type for which to find a device. - Returns a wrapper for a device of the specified device. @@ -72,4 +72,4 @@ The lamp should now light up! ![Lit redstone lamp](../img/scripting_lamp.png) -With this, you have the tools to learn the names of connected devices, which methods they offer and how to obtain their documentation. Go ahead and experiment with the other methods of the redstone interface to read incoming redstone signals, or try out other devices! \ No newline at end of file +With this, you have the tools to learn the names of connected devices, which methods they offer and how to obtain their documentation. Go ahead and experiment with the other methods of the redstone interface to read incoming redstone signals, or try out other devices!