Fix compilation error in AmountSpecifyingScreen due to cherry picking
This commit is contained in:
@@ -67,13 +67,13 @@ public abstract class AmountSpecifyingScreen<T extends AbstractContainerMenu> ex
|
|||||||
amountField.setResponder(text -> {
|
amountField.setResponder(text -> {
|
||||||
int amount = 0;
|
int amount = 0;
|
||||||
try {
|
try {
|
||||||
amount = Integer.parseInt(amountField.getText());
|
amount = Integer.parseInt(amountField.getValue());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
// NO OP
|
// NO OP
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amount > getMaxAmount()) {
|
if (amount > getMaxAmount()) {
|
||||||
amountField.setText(String.valueOf(getMaxAmount()));
|
amountField.setValue(String.valueOf(getMaxAmount()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user