From a2f1447b360f4275a6206efa8d035063b7901a4c Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Mon, 9 Sep 2024 19:31:51 +0200 Subject: [PATCH] Fix being unable to insert . (Fixes #27) --- .../com/mrbysco/armorposer/client/gui/widgets/SizeField.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/mrbysco/armorposer/client/gui/widgets/SizeField.java b/common/src/main/java/com/mrbysco/armorposer/client/gui/widgets/SizeField.java index 199005f..9475758 100644 --- a/common/src/main/java/com/mrbysco/armorposer/client/gui/widgets/SizeField.java +++ b/common/src/main/java/com/mrbysco/armorposer/client/gui/widgets/SizeField.java @@ -60,6 +60,9 @@ public void setFocused(boolean focused) { } protected boolean isNumeric(String value) { - return NumberUtils.isParsable(value); + if (value.equals(".")) + return true; + else + return NumberUtils.isParsable(value); } } \ No newline at end of file