cant win with friends and family

This commit is contained in:
70000hp 2024-07-10 10:27:38 -04:00
parent 8c7b359815
commit 301a932257
2 changed files with 6 additions and 5 deletions

View File

@ -135,15 +135,13 @@ public class ElectrolyserMetalRecipes extends SerializableRecipe {
ArrayList<Pair<Object, Integer>> productsF = new ArrayList<>();
productsF.add(new Pair<>(type.primary1,12));
productsF.add(new Pair<>(type.primary2,6));
productsF.add(new Pair<>(type.byproductAcid1,3));
productsF.add(new Pair<>(type.byproductAcid2,3));
productsF.add(new Pair<>(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type), 3));
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_FIRST, type)), makeBedrockOreProduct(productsF));
ArrayList<Pair<Object, Integer>> productsS = new ArrayList<>();
productsS.add(new Pair<>(type.primary1,6));
productsS.add(new Pair<>(type.primary2,12));
productsS.add(new Pair<>(type.byproductAcid2,3));
productsS.add(new Pair<>(type.byproductAcid3,3));
productsS.add(new Pair<>(ItemBedrockOreNew.make(BedrockOreGrade.CRUMBS, type),3));
recipes.put(new ComparableStack(ItemBedrockOreNew.make(BedrockOreGrade.PRIMARY_SECOND, type)), makeBedrockOreProduct(productsS));

View File

@ -169,8 +169,11 @@ public class ItemBedrockOreNew extends Item {
List<ItemStack> billets = OreDictionary.getOres(frame.billet(), false); if(!billets.isEmpty()) return fromList(billets, amount);
List<ItemStack> ingots = OreDictionary.getOres(frame.ingot(), false); if(!ingots.isEmpty()) return fromList(ingots, amount);
}
//Solely for recipe handling, to make the code more compact
if(o instanceof ItemStack){
return (ItemStack) o;
ItemStack stack = (ItemStack) o;
stack.stackSize = amount;
return stack;
}
return new ItemStack(ModItems.nothing);
}