Skip to content

Commit

Permalink
Make chatbox input reset upon logging out of a character #141
Browse files Browse the repository at this point in the history
(cherry picked from commit 5c3c124eefb9b552b4a1f815d57fadc232c6a476)
  • Loading branch information
brightrim committed May 5, 2024
1 parent 6777f77 commit 1d9fa29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ public void onEndScreen() {
public void onStartScreen() {
setHeightOfChatLog(CHAT_COLLAPSED_HEIGHT);
World.getUpdateTaskManager().addTask((container, delta) -> {
keyEvent(NiftyStandardInputEvent.SubmitText);
keyEvent(NiftyStandardInputEvent.SubmitText);
chatMsg.setText("");
keyEvent(NiftyStandardInputEvent.Escape);
});
AnnotationProcessor.process(this);
assert nifty != null;
Expand Down

0 comments on commit 1d9fa29

Please sign in to comment.