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() {
|
public int getIntValue() {
|
||||||
try {
|
try {
|
||||||
return Integer.valueOf(getText());
|
return (int)getPreciseValue();
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user