mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 22:04:49 +00:00
Reactor injection rate now rounds down to nearest even integer
This commit is contained in:
1 parent
274b6d1477
commit
1edec150c6
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user