From 6ba25ff14c02818b959cf308fdd6c1007d4f1dae Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 19 Sep 2024 10:38:29 +0200 Subject: [PATCH] Simplify xdecor.register_cut documentation --- src/workbench.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/workbench.lua b/src/workbench.lua index 3da199e..82e30a1 100644 --- a/src/workbench.lua +++ b/src/workbench.lua @@ -533,19 +533,18 @@ The following nodes will be registered: * _panel * _doublepanel * _halfstair + +You MUST make sure these names are not already taken before +calling this function. Failing to do so is an error. + +Additionally, the following nodes will be registered by using +the `stairs` mod if `_slab` does not exist yet: + * _slab * _stair * _stair_outer * _stair_inner -`_slab`, `_stair`, `_stair_outer` -and `_stair_inner` will only be registered if the -slab node (`_slab`) does not exist yet. These nodes will -be registered using the `stairs` mod. - -For the other nodes, you MUST make sure these names are not already -taken before calling this function. Failing to do so is an error. - Returns true if all nodes were registered successfully, returns false (and writes to error log) if any error occurred. ]]