Fix Crafting Dupe on Calculation, Test Item types for real quantities as they are needed.

This commit is contained in:
AlgorithmX2
2014-09-18 20:31:11 -05:00
parent 73cda63a78
commit 57d23dd2a7
2 changed files with 64 additions and 6 deletions
+6 -2
View File
@@ -47,7 +47,8 @@ public class CraftingJob implements Runnable, ICraftingJob
return output;
}
public CraftingJob(World w, NBTTagCompound data) {
public CraftingJob(World w, NBTTagCompound data)
{
world = wrapWorld( w );
storage = AEApi.instance().storage().createItemList();
prophecies = new HashSet();
@@ -65,7 +66,8 @@ public class CraftingJob implements Runnable, ICraftingJob
return availableCheck.extractItems( available, Actionable.MODULATE, this.actionSrc );
}
public CraftingJob(World w, IGrid grid, BaseActionSource actionSrc, IAEItemStack what, ICraftingCallback callback) {
public CraftingJob(World w, IGrid grid, BaseActionSource actionSrc, IAEItemStack what, ICraftingCallback callback)
{
world = wrapWorld( w );
output = what.copy();
storage = AEApi.instance().storage().createItemList();
@@ -76,6 +78,8 @@ public class CraftingJob implements Runnable, ICraftingJob
ICraftingGrid cc = grid.getCache( ICraftingGrid.class );
IStorageGrid sg = grid.getCache( IStorageGrid.class );
original = new MECraftingInventory( sg.getItemInventory(), false, false, false );
original.filterPermissions( actionSrc );
tree = getCraftingTree( cc, what );
availableCheck = null;
}