From d8bdfeb5dc39ef0db91729db23e8bd342e9e0cf7 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Tue, 1 Nov 2016 08:39:42 +0800 Subject: [PATCH] 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 071ee83b7a7ca830ffbd98a49c0440a32c091ae0) --- src/main/java/appeng/core/AppEng.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/appeng/core/AppEng.java b/src/main/java/appeng/core/AppEng.java index 6f071d12..537b7c9f 100644 --- a/src/main/java/appeng/core/AppEng.java +++ b/src/main/java/appeng/core/AppEng.java @@ -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 );