Skip to content

Commit

Permalink
should also have the ore background stone in it
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoriusT committed Jun 27, 2023
1 parent 02202aa commit 40886e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/gregapi/oredict/OreDictPrefix.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gregtech/loaders/b/Loader_OreProcessing.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 40886e6

Please sign in to comment.