Skip to content

Commit

Permalink
fix Botania crash due to inputField never being set
Browse files Browse the repository at this point in the history
  • Loading branch information
mist475 committed Mar 20, 2023
1 parent a5fd831 commit 2eec0ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/acs/tabbychat/core/GuiChatTC.java
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ public void initGui() {
text = inputField2.getText();
this.inputField2 = new GuiTextField(this.fontRendererObj, 4, this.height - 12,
textFieldWidth, 12);
//Fixes Botania crash as CorporeaAutoCompleteHandler.buildAutoCompletes doesn't do a null check
this.inputField = inputField2;
this.inputField2.setMaxStringLength(500);
this.inputField2.setCanLoseFocus(false);
this.inputField2.setFocused(true);
Expand Down

0 comments on commit 2eec0ef

Please sign in to comment.