Fixed GuiNumberInput#getIntValue() returning 0 if floating point number is entered

This commit is contained in:
CrushedPixel
2015-09-09 15:22:39 +02:00
parent eeded7a7fd
commit 030374df2a

View File

@@ -107,7 +107,7 @@ public class GuiNumberInput extends GuiAdvancedTextField {
public int getIntValue() { public int getIntValue() {
try { try {
return Integer.valueOf(getText()); return (int)getPreciseValue();
} catch(Exception e) { } catch(Exception e) {
return 0; return 0;
} }