Fixed fluids in Fluid Grid not showing actual mB on tooltip when pressing CTRL + SHIFT, fixes #1536
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
### 1.5.23
|
### 1.5.23
|
||||||
- Fixed duplication bug with autocrafting (raoulvdberge)
|
- Fixed duplication bug with autocrafting (raoulvdberge)
|
||||||
- Fixed Fluid Interface with Stack Upgrade not exporting liquids (raoulvdberge)
|
- Fixed Fluid Interface with Stack Upgrade not exporting liquids (raoulvdberge)
|
||||||
|
- Fixed fluids in Fluid Grid not showing actual mB on tooltip when pressing CTRL + SHIFT (raoulvdberge)
|
||||||
|
|
||||||
### 1.5.22
|
### 1.5.22
|
||||||
- Added oredict, blocking, processing, ore inputs access to OpenComputers API (raoulvdberge)
|
- Added oredict, blocking, processing, ore inputs access to OpenComputers API (raoulvdberge)
|
||||||
|
@@ -2,6 +2,7 @@ package com.raoulvdberge.refinedstorage.gui.grid.stack;
|
|||||||
|
|
||||||
import com.raoulvdberge.refinedstorage.gui.GuiBase;
|
import com.raoulvdberge.refinedstorage.gui.GuiBase;
|
||||||
import com.raoulvdberge.refinedstorage.util.RenderUtils;
|
import com.raoulvdberge.refinedstorage.util.RenderUtils;
|
||||||
|
import net.minecraft.util.text.TextFormatting;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
|
|
||||||
@@ -40,7 +41,7 @@ public class GridStackFluid implements IGridStack {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getTooltip(boolean quantity) {
|
public String getTooltip(boolean quantity) {
|
||||||
return stack.getFluid().getLocalizedName(stack);
|
return stack.getFluid().getLocalizedName(stack) + (quantity ? (" " + TextFormatting.GRAY + "(" + RenderUtils.QUANTITY_FORMATTER_UNFORMATTED.format(stack.amount) + " mB)" + TextFormatting.RESET) : "");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user