Reactor injection rate now rounds down to nearest even integer

This commit is contained in:
aidancbrady 2015-07-06 13:26:26 -07:00
parent 274b6d1477
commit 1edec150c6

View file

@ -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);