Skip to content

Commit bda523d

Browse files
authored
Merge pull request #4 from Navatusein/dev
Dev
2 parents f14fbb1 + 515fb84 commit bda523d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ Set the redstone I/O next to the Teleposer.
9696

9797
## Configuration
9898

99+
> [!NOTE]
100+
> For convenient configuration you can use the web configurator.
101+
> [GTNH-OC-Web-Configurator](https://navatusein.github.io/GTNH-OC-Web-Configurator/#/configurator?url=https%3A%2F%2Fraw.githubusercontent.com%2FNavatusein%2FGTNH-OC-Teleposer-Control%2Frefs%2Fheads%2Fmain%2Fconfig-descriptor.yml)
102+
99103
General configuration in file `config.lua`
100104
Enable auto update when starting the program.
101105

@@ -110,7 +114,7 @@ In the `discordWebhookUrl` field, you can specify the Discord Webhook link so th
110114

111115
```lua
112116
logger = loggerLib:newFormConfig({
113-
name = "Water Line Control",
117+
name = "Teleposer Control",
114118
timeZone = 3, -- Your time zone
115119
handlers = {
116120
discordLoggerHandler:newFormConfig({
@@ -119,14 +123,10 @@ logger = loggerLib:newFormConfig({
119123
discordWebhookUrl = "" -- Discord Webhook URL
120124
}),
121125
fileLoggerHandler:newFormConfig({
122-
logLevel = "debug",
126+
logLevel = "info",
123127
messageFormat = "{Time:%d.%m.%Y %H:%M:%S} [{LogLevel}]: {Message}",
124128
filePath = "logs.log"
125-
}),
126-
scrollListLoggerHandler:newFormConfig({
127-
logLevel = "debug",
128-
logsListSize = 32
129-
}),
129+
})
130130
}
131131
}),
132132
```

main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ local function loop()
4343
end
4444

4545
console:writeLine("")
46-
console:writeLine("Enter ["..first.."-"..last.."] teleposition focus index")
46+
console:writeLine("Enter ["..(#config.teleposer.telepositionFocuses ~= 0 and first or 0).."-"..last.."] teleposition focus index")
4747
console:writeLine("Enter [p1-p"..pageCount.."] to select page")
4848
console:writeLine("Enter [s] to scan teleposition focuses")
4949

@@ -52,7 +52,7 @@ local function loop()
5252
reader.conditions.index = console:createCondition()
5353
reader.conditions.index.userInputToNumber = true
5454
reader.conditions.index.condition = function(userInput)
55-
return userInput >= 0 and userInput <= #config.teleposer.telepositionFocuses
55+
return userInput > 0 and userInput <= #config.teleposer.telepositionFocuses and #config.teleposer.telepositionFocuses ~= 0
5656
end
5757
reader.conditions.index.callback = function(userInput)
5858
config.teleposer:teleport(assert(tonumber(userInput)))

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
local versions = {
2-
programVersion = "1.0.0",
2+
programVersion = "1.0.1",
33
configVersion = 1
44
}
55

0 commit comments

Comments
 (0)