Fixed tank texture
This commit is contained in:
parent
053a62f358
commit
5cdf1602bb
2 changed files with 101 additions and 91 deletions
|
@ -2,7 +2,10 @@ package resonantinduction.mechanical.fluid.pipe;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import calclavia.lib.utility.LanguageUtility;
|
||||||
|
import codechicken.lib.vec.Translation;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.resources.Language;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
|
@ -101,6 +104,13 @@ public class ItemBlockFluidContainer extends ItemBlock
|
||||||
@Override
|
@Override
|
||||||
public String getUnlocalizedName(ItemStack itemStack)
|
public String getUnlocalizedName(ItemStack itemStack)
|
||||||
{
|
{
|
||||||
|
String translation = LanguageUtility.getLocal(Block.blocksList[this.getBlockID()].getUnlocalizedName() + "." + itemStack.getItemDamage());
|
||||||
|
|
||||||
|
if (translation == null || translation.isEmpty())
|
||||||
|
{
|
||||||
|
return Block.blocksList[this.getBlockID()].getUnlocalizedName();
|
||||||
|
}
|
||||||
|
|
||||||
return Block.blocksList[this.getBlockID()].getUnlocalizedName() + "." + itemStack.getItemDamage();
|
return Block.blocksList[this.getBlockID()].getUnlocalizedName() + "." + itemStack.getItemDamage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,14 +23,14 @@ tile.resonantinduction\:fluidPipe.1.name=Stone Trough
|
||||||
|
|
||||||
### Mechanical Module
|
### Mechanical Module
|
||||||
## Energy
|
## Energy
|
||||||
tile.resonantinduction\:gear.name=Gear
|
item.resonantinduction\:gear.name=Gear
|
||||||
tile.resonantinduction\:gearShaft.name=Gear Shaft
|
item.resonantinduction\:gearShaft.name=Gear Shaft
|
||||||
|
|
||||||
## Transport
|
## Transport
|
||||||
tile.resonantinduction\:pump.name=Pump
|
tile.resonantinduction\:pump.name=Pump
|
||||||
tile.resonantinduction\:grate.name=Grate
|
tile.resonantinduction\:grate.name=Grate
|
||||||
tile.resonantinduction\:conveyorBelt.name=Conveyor Belt
|
tile.resonantinduction\:conveyorBelt.name=Conveyor Belt
|
||||||
tile.resonantinduction\:tank.0.name=Tank
|
tile.resonantinduction\:tank.name=Tank
|
||||||
tile.resonantinduction\:detector.name=Detector
|
tile.resonantinduction\:detector.name=Detector
|
||||||
tile.resonantinduction\:manipulator.name=Manipulator
|
tile.resonantinduction\:manipulator.name=Manipulator
|
||||||
tile.resonantinduction\:rejector.name=Rejector
|
tile.resonantinduction\:rejector.name=Rejector
|
||||||
|
|
Loading…
Reference in a new issue