Keep custom names for TileEntities.

This commit is contained in:
AlgorithmX2 2014-07-15 22:25:59 -05:00
parent 3d078538ca
commit e64bf91789

View file

@ -395,6 +395,13 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
{
NBTTagCompound output = new NBTTagCompound();
if ( hasCustomName() )
{
NBTTagCompound dsp = new NBTTagCompound();
dsp.setString( "Name", getCustomName() );
output.setTag( "display", dsp );
}
if ( this instanceof IConfigureableObject )
{
IConfigManager cm = ((IConfigureableObject) this).getConfigManager();