From 7d2ad8625a04efde9fce8ef51526f4afaeb267e0 Mon Sep 17 00:00:00 2001 From: Revxrsal Date: Thu, 3 Oct 2024 10:25:02 +0300 Subject: [PATCH] fix readString() --- .../main/java/revxrsal/commands/stream/BaseStringStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/revxrsal/commands/stream/BaseStringStream.java b/common/src/main/java/revxrsal/commands/stream/BaseStringStream.java index 16ad8a14..b4e6b493 100644 --- a/common/src/main/java/revxrsal/commands/stream/BaseStringStream.java +++ b/common/src/main/java/revxrsal/commands/stream/BaseStringStream.java @@ -130,7 +130,7 @@ public int position() { public @NotNull String readString() { if (!hasRemaining()) return ""; - char next = read(); + char next = peek(); if (next == DOUBLE_QUOTE) { pos += 1; return readUntil(DOUBLE_QUOTE);