Preserve search text as well

This commit is contained in:
tterrag1098 committed 2015-10-09 00:22:06 -04:00
1 parent dc103d53d1
commit 58ddb5b251
2 files changed
+5 -4

No files matched your search

@@ -163,9 +163,11 @@ public class GuiEnhancedModList extends GuiModList {
}
setGuiModListBottom(getGuiModListBottom() - 25);
search = new GuiTextField(mc.fontRenderer, 12, getGuiModListBottom() + 17, getListWidth() - 4, 14);
search.setFocused(true);
search.setCanLoseFocus(true);
if (search == null) {
search = new GuiTextField(mc.fontRenderer, 12, getGuiModListBottom() + 17, getListWidth() - 4, 14);
search.setFocused(true);
search.setCanLoseFocus(true);
}
int width = (getListWidth() / numButtons);
int x = 10, y = 10;
@@ -4,7 +4,6 @@ import java.awt.Point;
import java.util.Map;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;