mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 12:32:15 +00:00
Preserve search text as well
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user