Fix spectral block NBT writing

This commit is contained in:
Nick 2016-01-11 13:03:22 -08:00
parent 99d6dfc513
commit 0d70eb359e

View file

@ -35,7 +35,7 @@ public class TileSpectralBlock extends TileEntity implements ITickable
{
super.writeToNBT(tagCompound);
tagCompound.setInteger(Constants.NBT.TICKS_REMAINING, ticksRemaining);
tagCompound.setString(Constants.NBT.CONTAINED_BLOCK_NAME, containedBlockName);
tagCompound.setString(Constants.NBT.CONTAINED_BLOCK_NAME, Strings.isNullOrEmpty(containedBlockName) ? "" : containedBlockName);
tagCompound.setInteger(Constants.NBT.CONTAINED_BLOCK_META, containedBlockMeta);
}