only fire simulation if a player requested it
This commit is contained in:
@@ -174,6 +174,8 @@ public class CraftingJob implements Runnable, ICraftingJob
|
|||||||
this.simulate = true;
|
this.simulate = true;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if( actionSrc.player().isPresent() )
|
||||||
{
|
{
|
||||||
final Stopwatch timer = Stopwatch.createStarted();
|
final Stopwatch timer = Stopwatch.createStarted();
|
||||||
final MECraftingInventory craftingInventory = new MECraftingInventory( this.original, true, false, true );
|
final MECraftingInventory craftingInventory = new MECraftingInventory( this.original, true, false, true );
|
||||||
@@ -193,6 +195,7 @@ public class CraftingJob implements Runnable, ICraftingJob
|
|||||||
|
|
||||||
this.logCraftingJob( "simulate", timer );
|
this.logCraftingJob( "simulate", timer );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch( final CraftBranchFailure e1 )
|
catch( final CraftBranchFailure e1 )
|
||||||
{
|
{
|
||||||
AELog.debug( e1 );
|
AELog.debug( e1 );
|
||||||
|
|||||||
Reference in New Issue
Block a user