Keep custom names for TileEntities.
This commit is contained in:
parent
3d078538ca
commit
e64bf91789
1 changed files with 7 additions and 0 deletions
|
@ -395,6 +395,13 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
|
||||||
{
|
{
|
||||||
NBTTagCompound output = new NBTTagCompound();
|
NBTTagCompound output = new NBTTagCompound();
|
||||||
|
|
||||||
|
if ( hasCustomName() )
|
||||||
|
{
|
||||||
|
NBTTagCompound dsp = new NBTTagCompound();
|
||||||
|
dsp.setString( "Name", getCustomName() );
|
||||||
|
output.setTag( "display", dsp );
|
||||||
|
}
|
||||||
|
|
||||||
if ( this instanceof IConfigureableObject )
|
if ( this instanceof IConfigureableObject )
|
||||||
{
|
{
|
||||||
IConfigManager cm = ((IConfigureableObject) this).getConfigManager();
|
IConfigManager cm = ((IConfigureableObject) this).getConfigManager();
|
||||||
|
|
Loading…
Reference in a new issue