dont pause main thread when calculating
This commit is contained in:
@@ -325,25 +325,9 @@ public class CraftingJob implements Runnable, ICraftingJob
|
|||||||
{
|
{
|
||||||
this.watch.reset();
|
this.watch.reset();
|
||||||
this.watch.start();
|
this.watch.start();
|
||||||
this.running = true;
|
|
||||||
|
|
||||||
AELog.craftingDebug( "main thread is now going to sleep" );
|
|
||||||
|
|
||||||
this.monitor.notify();
|
this.monitor.notify();
|
||||||
|
|
||||||
while ( this.running )
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
this.monitor.wait();
|
|
||||||
}
|
|
||||||
catch( final InterruptedException ignored )
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
AELog.craftingDebug( "main thread is now active" );
|
|
||||||
}
|
}
|
||||||
|
this.running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user