Skip to content

Commit

Permalink
Update BasinDataProvider.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVikingWarrior committed Oct 21, 2014
1 parent 35bf8e4 commit ea6ed88
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/tconstruct/plugins/waila/BasinDataProvider.java
Expand Up @@ -3,6 +3,7 @@
import java.util.List;
import mcp.mobius.waila.api.*;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidStack;
import tconstruct.smeltery.logic.CastingBasinLogic;

Expand Down Expand Up @@ -34,18 +35,18 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
if (te.getFluidAmount() != 0)
{
FluidStack fs = te.getFluid();
currenttip.add("Liquid: " + WailaRegistrar.fluidNameHelper(fs));
currenttip.add("Amount: " + fs.amount + "/" + te.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(fs));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + fs.amount + "/" + te.getCapacity());
}
else
{
if (te.getStackInSlot(0) != null)
{
currenttip.add("Contains: " + te.getStackInSlot(0).getDisplayName());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.contains") + te.getStackInSlot(0).getDisplayName());
}
else
{
currenttip.add(SpecialChars.ITALIC + "Empty");
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty"));
}
}
}
Expand Down

0 comments on commit ea6ed88

Please sign in to comment.