mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-22 05:02:11 +00:00
Added item icon dumping
Changed world overrides to activate on option change, rather than requiring the W button to be clicked
This commit is contained in:
1 parent
edb6225c43
commit
ec56527b74
17 files changed
+367
-81
No files matched your search
@@ -22,7 +22,8 @@ public class OptionTextField extends Option
|
||||
@Override
|
||||
public void onTextChange(String oldText) {
|
||||
if(focused() && isValidValue(text()))
|
||||
getTag().setValue(text());
|
||||
if(!defaulting() || !text().equals(getTag().getValue()))//don't override global if text hasn't changed
|
||||
getTag().setValue(text());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -32,11 +33,8 @@ public class OptionTextField extends Option
|
||||
|
||||
@Override
|
||||
public void setFocus(boolean focus) {
|
||||
if (focus && defaulting())
|
||||
return;
|
||||
|
||||
if (!focus && !isValidValue(text()))
|
||||
setText(getTag().getValue());
|
||||
setText(renderTag().getValue());
|
||||
|
||||
focused = focus;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user