Fixes #2548: Disable item.csv export on the server side, because we're unable to access creative tab information on the server.

(cherry picked from commit 071ee83b7a)
This commit is contained in:
Sebastian Hartte 2016-11-01 08:39:42 +08:00 committed by xsun2001
parent 61fcc75a72
commit d8bdfeb5dc
1 changed files with 10 additions and 3 deletions

View File

@ -175,10 +175,17 @@ public final class AppEng
if( this.exportConfig.isExportingItemNamesEnabled() )
{
final ExportProcess process = new ExportProcess( this.recipeDirectory, this.exportConfig );
final Thread exportProcessThread = new Thread( process );
if( FMLCommonHandler.instance().getSide().isClient() )
{
final ExportProcess process = new ExportProcess( this.recipeDirectory, this.exportConfig );
final Thread exportProcessThread = new Thread( process );
this.startService( "AE2 CSV Export", exportProcessThread );
this.startService( "AE2 CSV Export", exportProcessThread );
}
else
{
AELog.info( "Disabling item.csv export for custom recipes, since creative tab information is only available on the client." );
}
}
this.registration.initialize( event, this.recipeDirectory, this.customRecipeConfig );