Applied-Energistics-2-tiler.../crafting/CraftBranchFailure.java
AlgorithmX2 6cbc5aa953 Recursive crafting works.
MA's can accept pushes.
Interfaces no alter pushing behavior depending on ICraftingMachine settings.
Fixed bug where crafting would record items that don't exist as available for the initial pull.
2014-06-20 02:12:39 -05:00

18 lines
452 B
Java

package appeng.crafting;
import appeng.api.storage.data.IAEItemStack;
import appeng.util.Platform;
public class CraftBranchFailure extends Exception
{
private static final long serialVersionUID = 654603652836724823L;
IAEItemStack missing;
public CraftBranchFailure(IAEItemStack what, long howMany) {
super( "Failed: " + Platform.getItemDisplayName( what ) + " x " + howMany );
missing = what.copy();
missing.setStackSize( howMany );
}
}