Fixed GuiNumberInput#getIntValue() returning 0 if floating point number is entered
This commit is contained in:
@@ -107,7 +107,7 @@ public class GuiNumberInput extends GuiAdvancedTextField {
|
||||
|
||||
public int getIntValue() {
|
||||
try {
|
||||
return Integer.valueOf(getText());
|
||||
return (int)getPreciseValue();
|
||||
} catch(Exception e) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user