Skip to content

Commit

Permalink
Update TableDataProvider.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVikingWarrior committed Oct 21, 2014
1 parent 742f534 commit f0ffabd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/plugins/waila/TableDataProvider.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 tconstruct.smeltery.logic.CastingTableLogic;

public class TableDataProvider implements IWailaDataProvider
Expand Down Expand Up @@ -33,12 +34,12 @@ public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip,
CastingTableLogic te = (CastingTableLogic) accessor.getTileEntity();
if (te.getStackInSlot(1) != null)
{
currenttip.add("Contains: " + te.getStackInSlot(1).getDisplayName());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.contains") + te.getStackInSlot(1).getDisplayName());
}
if (te.getFluid() != null)
{
currenttip.add("Fluid: " + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add("Amount: " + te.getFluidAmount() + "/" + te.getCapacity());
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(te.getFluid()));
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + te.getFluidAmount() + "/" + te.getCapacity());
}
}
return currenttip;
Expand Down

0 comments on commit f0ffabd

Please sign in to comment.