Formatting fixes

This commit is contained in:
Sebastian Hartte
2020-07-19 23:50:47 +02:00
parent 4322910614
commit 8d92a51e4f
8 changed files with 25 additions and 31 deletions
@@ -34,7 +34,7 @@ public class NumberBox extends TextFieldWidget {
private long maxValue;
public NumberBox(final FontRenderer fontRenderer, final int x, final int y, final int width, final int height,
final Class<?> type, LongConsumer changeListener) {
final Class<?> type, LongConsumer changeListener) {
super(fontRenderer, x, y, width, height, "0");
this.setText("0");
setResponder(this::onTextChanged);
@@ -128,7 +128,8 @@ public class NumberBox extends TextFieldWidget {
return true;
}
// Swallow key presses for numbers because they would otherwise trigger the hotbar swapping unintentionally
// Swallow key presses for numbers because they would otherwise trigger the
// hotbar swapping unintentionally
return isFocused() && p_keyPressed_1_ >= '0' && p_keyPressed_1_ <= '9';
}