Fixes #2548: Disable item.csv export on the server side, because we're unable to access creative tab information on the server.
This commit is contained in:
parent
dfe7a29c92
commit
071ee83b7a
|
@ -22,7 +22,6 @@ package appeng.core;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import com.google.common.base.Stopwatch;
|
import com.google.common.base.Stopwatch;
|
||||||
|
@ -197,10 +196,17 @@ public final class AppEng
|
||||||
|
|
||||||
if( this.exportConfig.isExportingItemNamesEnabled() )
|
if( this.exportConfig.isExportingItemNamesEnabled() )
|
||||||
{
|
{
|
||||||
final ExportProcess process = new ExportProcess( this.recipeDirectory, this.exportConfig );
|
if( FMLCommonHandler.instance().getSide().isClient() )
|
||||||
final Thread exportProcessThread = new Thread( process );
|
{
|
||||||
|
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 );
|
this.registration.initialize( event, this.recipeDirectory, this.customRecipeConfig );
|
||||||
|
|
Loading…
Reference in a new issue