remove time-based thread syncinc

This commit is contained in:
Salomão
2020-12-01 17:26:42 -03:00
parent c2e2696707
commit ceef176a2a
4 changed files with 4 additions and 79 deletions
+1 -2
View File
@@ -192,12 +192,11 @@ public class TickHandler
final Collection<CraftingJob> jobSet = this.craftingJobs.get( wte.world );
if( !jobSet.isEmpty() )
{
final int simTime = Math.max( 1, AEConfig.instance().getCraftingCalculationTimePerTick() / jobSet.size() * 1000);
final Iterator<CraftingJob> i = jobSet.iterator();
while( i.hasNext() )
{
final CraftingJob cj = i.next();
if( !cj.simulateFor( simTime ) )
if( !cj.simulateFor() )
{
i.remove();
}