From e64bf91789affb761f5959dfd528532e7dc66a4f Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 15 Jul 2014 22:25:59 -0500 Subject: [PATCH] Keep custom names for TileEntities. --- tile/AEBaseTile.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tile/AEBaseTile.java b/tile/AEBaseTile.java index acf82e0b..969da396 100644 --- a/tile/AEBaseTile.java +++ b/tile/AEBaseTile.java @@ -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();