Cleaned up lots of localization
This commit is contained in:
parent
5c7af4f039
commit
978e50a42e
9 changed files with 21 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.bloodmagic.tile;
|
||||
|
||||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
|
@ -11,10 +12,7 @@ import net.minecraft.network.NetworkManager;
|
|||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.IChatComponent;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.util.*;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileInventory extends TileEntity implements IInventory
|
||||
|
@ -234,7 +232,7 @@ public class TileInventory extends TileEntity implements IInventory
|
|||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return StatCollector.translateToLocal("tile.BloodMagic." + name + ".name");
|
||||
return TextHelper.localize("tile.BloodMagic." + name + ".name");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -246,6 +244,6 @@ public class TileInventory extends TileEntity implements IInventory
|
|||
@Override
|
||||
public IChatComponent getDisplayName()
|
||||
{
|
||||
return new ChatComponentTranslation("tile.BloodMagic." + name + ".name");
|
||||
return new ChatComponentText(getName());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue