fixed naquadah cell reverse processing

This commit is contained in:
Blood-Asp 2015-10-24 18:41:53 +02:00
parent 8f851f0f68
commit a2ad9c9e83
3 changed files with 4 additions and 0 deletions

View file

@ -1701,4 +1701,6 @@ public enum Materials implements IColorModulationContainer, ISubTagContainer {
public short[] getRGBA() {
return mRGBa;
}
public static volatile int VERSION = 509;
}

View file

@ -317,6 +317,7 @@ public class GT_OreDictUnificator {
public static ItemStack getIngotOrDust(MaterialStack aMaterial) {
ItemStack rStack = getIngot(aMaterial);
if(aMaterial!=null&&aMaterial.mMaterial!=null&&(aMaterial.mMaterial==Materials.Naquadah||aMaterial.mMaterial==Materials.NaquadahEnriched))rStack = getDust(aMaterial);
if (rStack == null) rStack = getDust(aMaterial);
return rStack;
}

View file

@ -160,6 +160,7 @@ public class GT_RecipeRegistrator {
if (aStack == null || aMaterial == null || aMaterialAmount <= 0 || aMaterial.contains(SubTag.NO_SMELTING) || (aMaterialAmount > M && aMaterial.contains(SubTag.METAL)))
return;
aMaterialAmount /= aStack.stackSize;
if(aMaterial==Materials.Naquadah||aMaterial==Materials.NaquadahEnriched)return;
if (aAllowAlloySmelter)
GT_ModHandler.addSmeltingAndAlloySmeltingRecipe(GT_Utility.copyAmount(1, aStack), GT_OreDictUnificator.getIngot(aMaterial.mSmeltInto, aMaterialAmount));
else