Skip to content

Commit

Permalink
dont pause main thread when calculating
Browse files Browse the repository at this point in the history
  • Loading branch information
PrototypeTrousers committed Jul 18, 2021
1 parent db2c4c4 commit 0bd2bd6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/main/java/appeng/crafting/CraftingJob.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,25 +325,9 @@ public boolean simulateFor(final int milli)
{
this.watch.reset();
this.watch.start();
this.running = true;

AELog.craftingDebug( "main thread is now going to sleep" );

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;
Expand Down

0 comments on commit 0bd2bd6

Please sign in to comment.