From 8fa2dac261eae7f20b259702fdb9aa35cba85b9a Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 11 Oct 2019 17:59:12 -0500 Subject: [PATCH] This should fix tab complete scuff --- src/launch/java/baritone/launch/mixins/MixinGuiChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launch/java/baritone/launch/mixins/MixinGuiChat.java b/src/launch/java/baritone/launch/mixins/MixinGuiChat.java index 570847e9..1c4b6d90 100644 --- a/src/launch/java/baritone/launch/mixins/MixinGuiChat.java +++ b/src/launch/java/baritone/launch/mixins/MixinGuiChat.java @@ -79,7 +79,7 @@ public class MixinGuiChat { if (event.completions.length == 0) { this.pendingSuggestions = Suggestions.empty(); } else { - int offset = this.inputField.getCursorPosition(); + int offset = this.inputField.getText().endsWith(" ") ? this.inputField.getCursorPosition() : 0; List suggestionList = Stream.of(event.completions) .map(s -> new Suggestion(StringRange.between(offset, offset + s.length()), s))