mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-10-25 20:22:20 +00:00
Fix oreDict field in the magnet card filter (#464)
This commit is contained in:
1 parent
1706b5a8da
commit
31746024ee
1 file changed
+5
@@ -144,6 +144,11 @@ public class GuiMagnetFilter extends GuiSub {
|
|||||||
this.components[1].setVar(this.cont.meta);
|
this.components[1].setVar(this.cont.meta);
|
||||||
this.components[2].setVar(this.cont.ore);
|
this.components[2].setVar(this.cont.ore);
|
||||||
this.components[3].setVar(this.cont.oreDict);
|
this.components[3].setVar(this.cont.oreDict);
|
||||||
|
// the synced value arrives after initGui, so re-apply it while the field is not being edited
|
||||||
|
if (!oreDict.isFocused() && this.cont.oreDictFilter != null
|
||||||
|
&& !this.cont.oreDictFilter.equals(oreDict.getText())) {
|
||||||
|
oreDict.setText(this.cont.oreDictFilter, true);
|
||||||
|
}
|
||||||
for (Component c : components) {
|
for (Component c : components) {
|
||||||
c.draw();
|
c.draw();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user