Skip to content

Commit

Permalink
fix defaultInputTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
mist475 committed Jul 30, 2023
1 parent 6ee5a42 commit e4d43d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/acs/tabbychat/core/GuiChatTC.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public class GuiChatTC extends GuiChat {
private final Logger log = TabbyChatUtils.log;
private final List<String> foundPlayerNames = new ArrayList<>();
public String historyBuffer = "";
public String defaultInputFieldText = "";
public List<GuiTextField> inputList = new ArrayList<>(3);
public ChatScrollBar scrollBar;
public TabbyChat tc;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/acs/tabbychat/util/TabbyChatUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public static void chatGuiTick(Minecraft mc) {
if (screen instanceof GuiSleepMP)
mc.displayGuiScreen(new GuiSleepTC());
else
mc.displayGuiScreen(new GuiChatTC(chat.field_146410_g));
mc.displayGuiScreen(new GuiChatTC(chat.defaultInputFieldText));
}

public static ServerData getServerData() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/tabbychat_at.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ protected net.minecraft.client.gui.GuiChat field_146416_h # sentHistoryCursor
protected net.minecraft.client.gui.GuiChat field_146411_u # clickedURI
protected net.minecraft.client.gui.GuiChat func_146407_a(Ljava/net/URI;)V # func_146407_a
protected net.minecraft.client.gui.GuiNewChat func_146235_b(Ljava/lang/String;)Ljava/lang/String; # func_146235_b
public net.minecraft.client.gui.GuiChat field_146410_g # field_146410_g
public net.minecraft.client.gui.GuiChat field_146409_v # defaultInputFieldText
protected net.minecraft.client.gui.GuiNewChat func_146237_a(Lnet/minecraft/util/IChatComponent;IIZ)V # func_146237_a
protected net.minecraft.client.gui.ChatLine field_74543_a # updateCounterCreated
protected net.minecraft.client.gui.ChatLine field_74542_c # chatLineID
Expand Down

0 comments on commit e4d43d7

Please sign in to comment.