Fixed Fluid and Gas Tank WAILA displays

This commit is contained in:
aidancbrady 2016-04-25 23:06:25 -04:00
parent c2aa94d633
commit 973339fa9a

View file

@ -10,6 +10,8 @@ import mekanism.api.Coord4D;
import mekanism.api.EnumColor; import mekanism.api.EnumColor;
import mekanism.common.tile.TileEntityBoundingBlock; import mekanism.common.tile.TileEntityBoundingBlock;
import mekanism.common.tile.TileEntityFactory; import mekanism.common.tile.TileEntityFactory;
import mekanism.common.tile.TileEntityFluidTank;
import mekanism.common.tile.TileEntityGasTank;
import mekanism.common.tile.TileEntityInductionCell; import mekanism.common.tile.TileEntityInductionCell;
import mekanism.common.tile.TileEntityInductionProvider; import mekanism.common.tile.TileEntityInductionProvider;
import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.entity.player.EntityPlayerMP;
@ -60,6 +62,14 @@ public class WailaDataProvider implements IWailaDataProvider
{ {
currenttip.set(0, EnumColor.WHITE + ((TileEntityFactory)tile).getInventoryName()); currenttip.set(0, EnumColor.WHITE + ((TileEntityFactory)tile).getInventoryName());
} }
else if(tile instanceof TileEntityFluidTank)
{
currenttip.set(0, EnumColor.WHITE + ((TileEntityFluidTank)tile).getInventoryName());
}
else if(tile instanceof TileEntityGasTank)
{
currenttip.set(0, EnumColor.WHITE + ((TileEntityGasTank)tile).getInventoryName());
}
else if(tile instanceof TileEntityBoundingBlock) else if(tile instanceof TileEntityBoundingBlock)
{ {
TileEntityBoundingBlock bound = (TileEntityBoundingBlock)tile; TileEntityBoundingBlock bound = (TileEntityBoundingBlock)tile;