Fixed bug with crafting calculation assuming partial resources for a task that was not executed.

This commit is contained in:
AlgorithmX2
2014-07-17 23:02:19 -05:00
parent 3d2555a14f
commit f11bc7acc6
2 changed files with 29 additions and 4 deletions
+5
View File
@@ -55,6 +55,11 @@ public class CraftingJob implements Runnable, ICraftingJob
availableCheck = null;
}
public void refund(IAEItemStack o)
{
availableCheck.injectItems( o, Actionable.MODULATE, this.actionSrc );
}
public IAEItemStack checkUse(IAEItemStack available)
{
return availableCheck.extractItems( available, Actionable.MODULATE, this.actionSrc );