From 40886e68b5c3ad416c1b33ec4729bd63cefd67c5 Mon Sep 17 00:00:00 2001 From: Gregorius Techneticies Date: Tue, 27 Jun 2023 10:38:32 +0200 Subject: [PATCH] should also have the ore background stone in it --- src/main/java/gregapi/oredict/OreDictPrefix.java | 4 ++++ src/main/java/gregtech/loaders/b/Loader_OreProcessing.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregapi/oredict/OreDictPrefix.java b/src/main/java/gregapi/oredict/OreDictPrefix.java index 31fb21d48..fc67ee2d2 100644 --- a/src/main/java/gregapi/oredict/OreDictPrefix.java +++ b/src/main/java/gregapi/oredict/OreDictPrefix.java @@ -454,6 +454,10 @@ public ItemStack mat(OreDictMaterial aMaterial, ItemStack aReplacement, long aSt return OreDictManager.INSTANCE.getStack(this, aMaterial, aReplacement, aStackSize); } + public OreDictMaterialStack byproduct(int aIndex) { + return aIndex < mByProducts.size() ? mByProducts.get(aIndex) : null; + } + @Override public void onOreRegistration(OreDictRegistrationContainer aEvent) { if (aEvent.mMaterial == MT.NULL) { diff --git a/src/main/java/gregtech/loaders/b/Loader_OreProcessing.java b/src/main/java/gregtech/loaders/b/Loader_OreProcessing.java index 8c1ad0c92..7881b63eb 100644 --- a/src/main/java/gregtech/loaders/b/Loader_OreProcessing.java +++ b/src/main/java/gregtech/loaders/b/Loader_OreProcessing.java @@ -293,7 +293,7 @@ public static class OreProcessing_Ore implements IOreDictListenerEvent { @Override public void onOreRegistration(OreDictRegistrationContainer aEvent) { if (aEvent.mMaterial == MT.Oilsands) { - RM.Centrifuge.addRecipe1(T, 16, UT.Code.units(aEvent.mPrefix.mWeight, U, 64, T), aEvent.mStack, NF, FL.Oil_Normal.make(UT.Code.units(aEvent.mPrefix.mWeight, U, 250, T)), OM.dust(MT.Sand, aEvent.mPrefix.mWeight * 2)); + RM.Centrifuge.addRecipe1(T, 16, UT.Code.units(aEvent.mPrefix.mWeight, U, 64, T), aEvent.mStack, NF, FL.Oil_Normal.make(UT.Code.units(aEvent.mPrefix.mWeight, U, 250, T)), OM.dust(MT.Sand, aEvent.mPrefix.mWeight * 2), OM.dust(aEvent.mPrefix.byproduct(0)), OM.dust(aEvent.mPrefix.byproduct(1)), OM.dust(aEvent.mPrefix.byproduct(2)), OM.dust(aEvent.mPrefix.byproduct(3)), OM.dust(aEvent.mPrefix.byproduct(4))); } else { registerStandardOreRecipes(aEvent.mPrefix, aEvent.mMaterial, aEvent.mStack, aEvent.mMaterial.mOreProcessingMultiplier * (aEvent.mPrefix.contains(TD.Prefix.DENSE_ORE)?2:1)); }