chat node: proper . skipping

This commit is contained in:
Bixilon 2022-05-22 21:09:14 +02:00
parent 7e4814cd9d
commit e4eaf2af8e
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -43,8 +43,8 @@ class ChatNode(
private fun getNode(reader: CommandReader, stack: CommandStack): RootNode? { private fun getNode(reader: CommandReader, stack: CommandStack): RootNode? {
val peek = reader.unsafePeek() val peek = reader.unsafePeek()
if (peek == '.'.code) { if (peek == '.'.code) {
reader.read()
if (allowCLI) { if (allowCLI) {
reader.read()
return CLI.ROOT_NODE return CLI.ROOT_NODE
} }
return null return null