mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Fixed a problem with OreDict entries getting added for items with stack sizes of 8
Closes #35
This commit is contained in:
parent
caf3fac208
commit
93fcacdacb
2 changed files with 55 additions and 15 deletions
|
@ -145,10 +145,18 @@ public class LensNoneRecipeHandler{
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> stacks = OreDictionary.getOres(this.output, false);
|
List<ItemStack> stacks = OreDictionary.getOres(this.output, false);
|
||||||
for(ItemStack stack : stacks){
|
if(stacks != null && !stacks.isEmpty()){
|
||||||
stack.stackSize = 1;
|
List<ItemStack> stacksCopy = new ArrayList<ItemStack>();
|
||||||
|
for(ItemStack stack : stacks){
|
||||||
|
if(stack != null){
|
||||||
|
ItemStack stackCopy = stack.copy();
|
||||||
|
stackCopy.stackSize = 1;
|
||||||
|
stacksCopy.add(stackCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stacksCopy;
|
||||||
}
|
}
|
||||||
return stacks;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ItemStack> getInputs(){
|
public List<ItemStack> getInputs(){
|
||||||
|
@ -161,10 +169,18 @@ public class LensNoneRecipeHandler{
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> stacks = OreDictionary.getOres(this.input, false);
|
List<ItemStack> stacks = OreDictionary.getOres(this.input, false);
|
||||||
for(ItemStack stack : stacks){
|
if(stacks != null && !stacks.isEmpty()){
|
||||||
stack.stackSize = 1;
|
List<ItemStack> stacksCopy = new ArrayList<ItemStack>();
|
||||||
|
for(ItemStack stack : stacks){
|
||||||
|
if(stack != null){
|
||||||
|
ItemStack stackCopy = stack.copy();
|
||||||
|
stackCopy.stackSize = 1;
|
||||||
|
stacksCopy.add(stackCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stacksCopy;
|
||||||
}
|
}
|
||||||
return stacks;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,10 +172,18 @@ public class CrusherRecipeRegistry{
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> stacks = OreDictionary.getOres(this.outputOne, false);
|
List<ItemStack> stacks = OreDictionary.getOres(this.outputOne, false);
|
||||||
for(ItemStack stack : stacks){
|
if(stacks != null && !stacks.isEmpty()){
|
||||||
stack.stackSize = this.outputOneAmount;
|
List<ItemStack> stacksCopy = new ArrayList<ItemStack>();
|
||||||
|
for(ItemStack stack : stacks){
|
||||||
|
if(stack != null){
|
||||||
|
ItemStack stackCopy = stack.copy();
|
||||||
|
stackCopy.stackSize = this.outputOneAmount;
|
||||||
|
stacksCopy.add(stackCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stacksCopy;
|
||||||
}
|
}
|
||||||
return stacks;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ItemStack> getRecipeOutputTwos(){
|
public List<ItemStack> getRecipeOutputTwos(){
|
||||||
|
@ -188,10 +196,18 @@ public class CrusherRecipeRegistry{
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> stacks = OreDictionary.getOres(this.outputTwo, false);
|
List<ItemStack> stacks = OreDictionary.getOres(this.outputTwo, false);
|
||||||
for(ItemStack stack : stacks){
|
if(stacks != null && !stacks.isEmpty()){
|
||||||
stack.stackSize = this.outputTwoAmount;
|
List<ItemStack> stacksCopy = new ArrayList<ItemStack>();
|
||||||
|
for(ItemStack stack : stacks){
|
||||||
|
if(stack != null){
|
||||||
|
ItemStack stackCopy = stack.copy();
|
||||||
|
stackCopy.stackSize = this.outputTwoAmount;
|
||||||
|
stacksCopy.add(stackCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stacksCopy;
|
||||||
}
|
}
|
||||||
return stacks;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ItemStack> getRecipeInputs(){
|
public List<ItemStack> getRecipeInputs(){
|
||||||
|
@ -204,10 +220,18 @@ public class CrusherRecipeRegistry{
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ItemStack> stacks = OreDictionary.getOres(this.input, false);
|
List<ItemStack> stacks = OreDictionary.getOres(this.input, false);
|
||||||
for(ItemStack stack : stacks){
|
if(stacks != null && !stacks.isEmpty()){
|
||||||
stack.stackSize = 1;
|
List<ItemStack> stacksCopy = new ArrayList<ItemStack>();
|
||||||
|
for(ItemStack stack : stacks){
|
||||||
|
if(stack != null){
|
||||||
|
ItemStack stackCopy = stack.copy();
|
||||||
|
stackCopy.stackSize = 1;
|
||||||
|
stacksCopy.add(stackCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return stacksCopy;
|
||||||
}
|
}
|
||||||
return stacks;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue