Fixed Fluid Grid not formatting large quantities correctly, fixes #1167

This commit is contained in:
raoulvdberge
2017-04-21 21:17:46 +02:00
parent 4b1fd70395
commit ebbf506b3b
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,7 @@
- The Solderer inventory isn't sided anymore (raoulvdberge) - The Solderer inventory isn't sided anymore (raoulvdberge)
- You can now use up and down arrows to scroll through Grid search history (raoulvdberge) - You can now use up and down arrows to scroll through Grid search history (raoulvdberge)
- Fixed Grid crash (raoulvdberge) - Fixed Grid crash (raoulvdberge)
- Fixed Fluid Grid not formatting large quantities correctly (raoulvdberge)
### 1.4.2 ### 1.4.2
- Updated Forge to 2261 (raoulvdberge) - Updated Forge to 2261 (raoulvdberge)

View File

@@ -35,7 +35,7 @@ public class GridStackFluid implements IGridStack {
@Override @Override
public String[] getOreIds() { public String[] getOreIds() {
return new String[]{ stack.getFluid().getName() }; return new String[]{stack.getFluid().getName()};
} }
@Override @Override
@@ -52,7 +52,7 @@ public class GridStackFluid implements IGridStack {
public void draw(GuiBase gui, int x, int y, boolean isOverWithShift) { public void draw(GuiBase gui, int x, int y, boolean isOverWithShift) {
GuiBase.FLUID_RENDERER.draw(gui.mc, x, y, stack); GuiBase.FLUID_RENDERER.draw(gui.mc, x, y, stack);
gui.drawQuantity(x, y, RSUtils.QUANTITY_FORMATTER.format((float) stack.amount / 1000F)); gui.drawQuantity(x, y, RSUtils.formatQuantity((int) ((float) stack.amount / 1000F)));
} }
@Override @Override