Fix issues with getting item stacks, Closes #940 and fixes a bunch of other stuff

This commit is contained in:
modmuss50 2017-01-31 12:33:00 +00:00
parent 45600ded32
commit f392cd4290
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -76,11 +76,11 @@ public abstract class RecipeMethods {
}
static ItemStack getStack(Item item, boolean wildcard) {
return getStack(item, 1, true);
return getStack(item, 1, wildcard);
}
static ItemStack getStack(Item item, int count, boolean wildcard) {
return getStack(item, count, OreDictionary.WILDCARD_VALUE);
return getStack(item, count, wildcard ? OreDictionary.WILDCARD_VALUE : 0);
}
static ItemStack getStack(Item item, int count, int metadata) {
@ -100,11 +100,11 @@ public abstract class RecipeMethods {
}
static ItemStack getStack(Block block, int count, boolean wildcard) {
return getStack(block, count, OreDictionary.WILDCARD_VALUE);
return getStack(block, count, wildcard ? OreDictionary.WILDCARD_VALUE : 0);
}
static ItemStack getStack(Block block, int count, int metadata) {
return getStack(Item.getItemFromBlock(block), count, OreDictionary.WILDCARD_VALUE);
return getStack(Item.getItemFromBlock(block), count, metadata);
}
static ItemStack getStack(IC2Duplicates ic2Duplicates) {