Reactor injection rate now rounds down to nearest even integer
This commit is contained in:
parent
274b6d1477
commit
1edec150c6
1 changed files with 2 additions and 1 deletions
|
@ -190,7 +190,8 @@ public class GuiReactorFuel extends GuiMekanism
|
|||
if(!injectionRateField.getText().isEmpty())
|
||||
{
|
||||
int toUse = Math.max(0, Integer.parseInt(injectionRateField.getText()));
|
||||
|
||||
toUse -= toUse%2;
|
||||
|
||||
ArrayList data = new ArrayList();
|
||||
data.add(0);
|
||||
data.add(toUse);
|
||||
|
|
Loading…
Reference in a new issue